@wevu/api 0.2.5 → 0.2.7
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/README.md +5 -5
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +78 -29
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
|
|
37
37
|
| 平台 | 可调用 API 数 | 语义对齐 API 数 | fallback API 数 | API 总数 | 可调用覆盖率 | 语义对齐覆盖率 |
|
|
38
38
|
| --- | --- | --- | --- | --- | --- | --- |
|
|
39
|
-
| 微信小程序 (`wx`) |
|
|
40
|
-
| 支付宝小程序 (`my`) | 201 | 201 | 0 |
|
|
41
|
-
| 抖音小程序 (`tt`) | 133 | 133 | 0 |
|
|
42
|
-
| 三端可调用完全对齐 (wx/my/tt) | 117 | - | - |
|
|
43
|
-
| 三端语义完全对齐 (wx/my/tt) | - | 117 | - |
|
|
39
|
+
| 微信小程序 (`wx`) | 484 | 484 | 0 | 484 | 100.00% | 100.00% |
|
|
40
|
+
| 支付宝小程序 (`my`) | 201 | 201 | 0 | 484 | 41.53% | 41.53% |
|
|
41
|
+
| 抖音小程序 (`tt`) | 133 | 133 | 0 | 484 | 27.48% | 27.48% |
|
|
42
|
+
| 三端可调用完全对齐 (wx/my/tt) | 117 | - | - | 484 | 24.17% | - |
|
|
43
|
+
| 三端语义完全对齐 (wx/my/tt) | - | 117 | - | 484 | - | 24.17% |
|
|
44
44
|
|
|
45
45
|
> 该报告由 `WEAPI_METHOD_SUPPORT_MATRIX` 与映射规则自动计算生成。
|
|
46
46
|
|
package/dist/index.d.mts
CHANGED
|
@@ -8306,11 +8306,11 @@ declare function createWeapi<TAdapter extends WeapiAdapter = WeapiCrossPlatformR
|
|
|
8306
8306
|
declare const WEAPI_TYPE_SOURCES: {
|
|
8307
8307
|
readonly default: {
|
|
8308
8308
|
readonly package: "miniprogram-api-typings";
|
|
8309
|
-
readonly version: "5.
|
|
8309
|
+
readonly version: "5.2.0";
|
|
8310
8310
|
};
|
|
8311
8311
|
readonly wechat: {
|
|
8312
8312
|
readonly package: "miniprogram-api-typings";
|
|
8313
|
-
readonly version: "5.
|
|
8313
|
+
readonly version: "5.2.0";
|
|
8314
8314
|
};
|
|
8315
8315
|
readonly alipay: {
|
|
8316
8316
|
readonly package: "@mini-types/alipay";
|
|
@@ -8322,7 +8322,7 @@ declare const WEAPI_TYPE_SOURCES: {
|
|
|
8322
8322
|
};
|
|
8323
8323
|
readonly wx: {
|
|
8324
8324
|
readonly package: "miniprogram-api-typings";
|
|
8325
|
-
readonly version: "5.
|
|
8325
|
+
readonly version: "5.2.0";
|
|
8326
8326
|
};
|
|
8327
8327
|
readonly my: {
|
|
8328
8328
|
readonly package: "@mini-types/alipay";
|
|
@@ -8336,11 +8336,11 @@ declare const WEAPI_TYPE_SOURCES: {
|
|
|
8336
8336
|
declare const WEAPI_PLATFORM_TYPE_SOURCES: {
|
|
8337
8337
|
readonly default: {
|
|
8338
8338
|
readonly package: "miniprogram-api-typings";
|
|
8339
|
-
readonly version: "5.
|
|
8339
|
+
readonly version: "5.2.0";
|
|
8340
8340
|
};
|
|
8341
8341
|
readonly wechat: {
|
|
8342
8342
|
readonly package: "miniprogram-api-typings";
|
|
8343
|
-
readonly version: "5.
|
|
8343
|
+
readonly version: "5.2.0";
|
|
8344
8344
|
};
|
|
8345
8345
|
readonly alipay: {
|
|
8346
8346
|
readonly package: "@mini-types/alipay";
|
|
@@ -8354,7 +8354,7 @@ declare const WEAPI_PLATFORM_TYPE_SOURCES: {
|
|
|
8354
8354
|
declare const WEAPI_RUNTIME_TYPE_SOURCES: {
|
|
8355
8355
|
readonly wx: {
|
|
8356
8356
|
readonly package: "miniprogram-api-typings";
|
|
8357
|
-
readonly version: "5.
|
|
8357
|
+
readonly version: "5.2.0";
|
|
8358
8358
|
};
|
|
8359
8359
|
readonly my: {
|
|
8360
8360
|
readonly package: "@mini-types/alipay";
|
|
@@ -8367,11 +8367,11 @@ declare const WEAPI_RUNTIME_TYPE_SOURCES: {
|
|
|
8367
8367
|
};
|
|
8368
8368
|
//#endregion
|
|
8369
8369
|
//#region src/core/apiCatalog/index.d.ts
|
|
8370
|
-
declare const WEAPI_WECHAT_METHODS: readonly ["addCard", "addFileToFavorites", "addPaymentPassFinish", "addPaymentPassGetCertificateData", "addPhoneCalendar", "addPhoneContact", "addPhoneRepeatCalendar", "addVideoToFavorites", "arrayBufferToBase64", "authorize", "authorizeForMiniProgram", "authPrivateMessage", "base64ToArrayBuffer", "batchGetStorage", "batchGetStorageSync", "batchSetStorage", "batchSetStorageSync", "bindEmployeeRelation", "canAddSecureElementPass", "cancelIdleCallback", "canIUse", "canvasGetImageData", "canvasPutImageData", "canvasToTempFilePath", "checkDeviceSupportHevc", "checkEmployeeRelation", "checkIsAddedToMyMiniProgram", "checkIsOpenAccessibility", "checkIsPictureInPictureActive", "checkIsSoterEnrolledInDevice", "checkIsSupportSoterAuthentication", "checkSession", "chooseAddress", "chooseContact", "chooseImage", "chooseInvoice", "chooseInvoiceTitle", "chooseLicensePlate", "chooseLocation", "chooseMedia", "chooseMessageFile", "choosePoi", "chooseVideo", "clearStorage", "clearStorageSync", "closeBLEConnection", "closeBluetoothAdapter", "closeSocket", "compressImage", "compressVideo", "connectSocket", "connectWifi", "createAnimation", "createAudioContext", "createBLEConnection", "createBLEPeripheralServer", "createBufferURL", "createCacheManager", "createCameraContext", "createCanvasContext", "createGlobalPayment", "createInferenceSession", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVideoContext", "createVideoDecoder", "createVKSession", "createWebAudioContext", "createWorker", "cropImage", "disableAlertBeforeUnload", "downloadFile", "editImage", "enableAlertBeforeUnload", "exitMiniProgram", "exitVoIPChat", "faceDetect", "getAccountInfoSync", "getApiCategory", "getAppAuthorizeSetting", "getAppBaseInfo", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundAudioPlayerState", "getBackgroundFetchData", "getBackgroundFetchToken", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getChannelsLiveInfo", "getChannelsLiveNoticeInfo", "getChannelsShareKey", "getChatToolInfo", "getClipboardData", "getCommonConfig", "getConnectedBluetoothDevices", "getConnectedWifi", "getDeviceBenchmarkInfo", "getDeviceInfo", "getDeviceVoIPList", "getEnterOptionsSync", "getExptInfoSync", "getExtConfig", "getExtConfigSync", "getFileSystemManager", "getFuzzyLocation", "getGroupEnterInfo", "getHCEState", "getImageInfo", "getInferenceEnvInfo", "getLaunchOptionsSync", "getLocalIPAddress", "getLocation", "getLogManager", "getMenuButtonBoundingClientRect", "getNetworkType", "getNFCAdapter", "getPerformance", "getPrivacySetting", "getRandomValues", "getRealtimeLogManager", "getRecorderManager", "getRendererUserAgent", "getScreenBrightness", "getScreenRecordingState", "getSecureElementPasses", "getSelectedTextRange", "getSetting", "getShareInfo", "getShowSplashAdStatus", "getSkylineInfo", "getSkylineInfoSync", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoAsync", "getSystemInfoSync", "getSystemSetting", "getUpdateManager", "getUserCryptoManager", "getUserInfo", "getUserProfile", "getVideoInfo", "getWeRunData", "getWifiList", "getWindowInfo", "getXrFrameSystem", "hideHomeButton", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "initFaceDetect", "isBluetoothDevicePaired", "isVKSupport", "join1v1Chat", "joinVoIPChat", "loadBuiltInFontFace", "loadFontFace", "login", "makeBluetoothPair", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "nextTick", "notifyBLECharacteristicValueChange", "notifyGroupMembers", "offAccelerometerChange", "offAfterPageLoad", "offAfterPageUnload", "offApiCategoryChange", "offAppHide", "offAppRoute", "offAppRouteDone", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBatteryInfoChange", "offBeaconServiceChange", "offBeaconUpdate", "offBeforeAppRoute", "offBeforePageLoad", "offBeforePageUnload", "offBLECharacteristicValueChange", "offBLEConnectionStateChange", "offBLEMTUChange", "offBLEPeripheralConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offCopyUrl", "offDeviceMotionChange", "offEmbeddedMiniProgramHeightChange", "offError", "offGeneratePoster", "offGetWifiList", "offGyroscopeChange", "offHCEMessage", "offKeyboardHeightChange", "offKeyDown", "offKeyUp", "offLazyLoadError", "offLocalServiceDiscoveryStop", "offLocalServiceFound", "offLocalServiceLost", "offLocalServiceResolveFail", "offLocationChange", "offLocationChangeError", "offMemoryWarning", "offMenuButtonBoundingClientRectWeightChange", "offNetworkStatusChange", "offNetworkWeakChange", "offPageNotFound", "offParallelStateChange", "offScreenRecordingStateChanged", "offThemeChange", "offUnhandledRejection", "offUserCaptureScreen", "offUserOffTranslation", "offUserTriggerTranslation", "offVoIPChatInterrupted", "offVoIPChatMembersChanged", "offVoIPChatSpeakersChanged", "offVoIPChatStateChanged", "offVoIPVideoMembersChanged", "offWifiConnected", "offWifiConnectedWithPartialInfo", "offWindowResize", "offWindowStateChange", "onAccelerometerChange", "onAfterPageLoad", "onAfterPageUnload", "onApiCategoryChange", "onAppHide", "onAppRoute", "onAppRouteDone", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBackgroundAudioPause", "onBackgroundAudioPlay", "onBackgroundAudioStop", "onBackgroundFetchData", "onBatteryInfoChange", "onBeaconServiceChange", "onBeaconUpdate", "onBeforeAppRoute", "onBeforePageLoad", "onBeforePageUnload", "onBLECharacteristicValueChange", "onBLEConnectionStateChange", "onBLEMTUChange", "onBLEPeripheralConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onCopyUrl", "onDeviceMotionChange", "onEmbeddedMiniProgramHeightChange", "onError", "onGeneratePoster", "onGetWifiList", "onGyroscopeChange", "onHCEMessage", "onKeyboardHeightChange", "onKeyDown", "onKeyUp", "onLazyLoadError", "onLocalServiceDiscoveryStop", "onLocalServiceFound", "onLocalServiceLost", "onLocalServiceResolveFail", "onLocationChange", "onLocationChangeError", "onMemoryWarning", "onMenuButtonBoundingClientRectWeightChange", "onNeedPrivacyAuthorization", "onNetworkStatusChange", "onNetworkWeakChange", "onPageNotFound", "onParallelStateChange", "onScreenRecordingStateChanged", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onThemeChange", "onUnhandledRejection", "onUserCaptureScreen", "onUserOffTranslation", "onUserTriggerTranslation", "onVoIPChatInterrupted", "onVoIPChatMembersChanged", "onVoIPChatSpeakersChanged", "onVoIPChatStateChanged", "onVoIPVideoMembersChanged", "onWifiConnected", "onWifiConnectedWithPartialInfo", "onWindowResize", "onWindowStateChange", "openAppAuthorizeSetting", "openBluetoothAdapter", "openCard", "openChannelsActivity", "openChannelsEvent", "openChannelsLive", "openChannelsLiveNoticeInfo", "openChannelsUserProfile", "openChatTool", "openCustomerServiceChat", "openDocument", "openEmbeddedMiniProgram", "openHKOfflinePayView", "openInquiriesTopic", "openLocation", "openOfficialAccountArticle", "openOfficialAccountChat", "openOfficialAccountProfile", "openPrivacyContract", "openSetting", "openSingleStickerView", "openStickerIPView", "openStickerSetView", "openStoreCouponDetail", "openStoreOrderDetail", "openSystemBluetoothSetting", "openVideoEditor", "pageScrollTo", "pauseBackgroundAudio", "pauseVoice", "playBackgroundAudio", "playVoice", "pluginLogin", "postMessageToReferrerMiniProgram", "postMessageToReferrerPage", "preDownloadSubpackage", "preloadAssets", "preloadSkylineView", "preloadWebview", "previewImage", "previewMedia", "readBLECharacteristicValue", "redirectTo", "reLaunch", "removeSecureElementPass", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "reportEvent", "reportMonitor", "reportPerformance", "request", "requestCommonPayment", "requestDeviceVoIP", "requestIdleCallback", "requestMerchantTransfer", "requestOrderPayment", "requestPayment", "requestPluginPayment", "requestSubscribeDeviceMessage", "requestSubscribeEmployeeMessage", "requestSubscribeMessage", "requestVirtualPayment", "requirePrivacyAuthorize", "reserveChannelsLive", "restartMiniProgram", "revokeBufferURL", "rewriteRoute", "saveFileToDisk", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "seekBackgroundAudio", "selectGroupMembers", "sendHCEMessage", "sendSms", "sendSocketMessage", "setBackgroundColor", "setBackgroundFetchToken", "setBackgroundTextStyle", "setBLEMTU", "setClipboardData", "setEnable1v1Chat", "setEnableDebug", "setInnerAudioOption", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setTopBarText", "setVisualEffectOnCapture", "setWifiList", "setWindowSize", "shareAppMessageToGroup", "shareEmojiToGroup", "shareFileMessage", "shareFileToGroup", "shareImageToGroup", "shareToOfficialAccount", "shareToWeRun", "shareVideoMessage", "shareVideoToGroup", "showActionSheet", "showLoading", "showModal", "showNavigationBarLoading", "showRedPackage", "showShareImageMenu", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startDeviceMotionListening", "startGyroscope", "startHCE", "startLocalServiceDiscovery", "startLocationUpdate", "startLocationUpdateBackground", "startPullDownRefresh", "startRecord", "startSoterAuthentication", "startWifi", "stopAccelerometer", "stopBackgroundAudio", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopDeviceMotionListening", "stopFaceDetect", "stopGyroscope", "stopHCE", "stopLocalServiceDiscovery", "stopLocationUpdate", "stopPullDownRefresh", "stopRecord", "stopVoice", "stopWifi", "subscribeVoIPVideoMembers", "switchTab", "updateShareMenu", "updateVoIPChatMuteConfig", "updateWeChatApp", "uploadFile", "vibrateLong", "vibrateShort", "writeBLECharacteristicValue"];
|
|
8370
|
+
declare const WEAPI_WECHAT_METHODS: readonly ["addCard", "addFileToFavorites", "addPaymentPassFinish", "addPaymentPassGetCertificateData", "addPhoneCalendar", "addPhoneContact", "addPhoneRepeatCalendar", "addVideoToFavorites", "arrayBufferToBase64", "authorize", "authorizeForMiniProgram", "authPrivateMessage", "base64ToArrayBuffer", "batchGetStorage", "batchGetStorageSync", "batchSetStorage", "batchSetStorageSync", "bindEmployeeRelation", "canAddSecureElementPass", "cancelIdleCallback", "canIUse", "canvasGetImageData", "canvasPutImageData", "canvasToTempFilePath", "checkDeviceSupportHevc", "checkEmployeeRelation", "checkIsAddedToMyMiniProgram", "checkIsOpenAccessibility", "checkIsPictureInPictureActive", "checkIsSoterEnrolledInDevice", "checkIsSupportFacialRecognition", "checkIsSupportSoterAuthentication", "checkSession", "chooseAddress", "chooseContact", "chooseImage", "chooseInvoice", "chooseInvoiceTitle", "chooseLicensePlate", "chooseLocation", "chooseMedia", "chooseMessageFile", "choosePoi", "chooseVideo", "clearStorage", "clearStorageSync", "closeBLEConnection", "closeBluetoothAdapter", "closeSocket", "compressImage", "compressVideo", "connectSocket", "connectWifi", "createAnimation", "createAudioContext", "createBLEConnection", "createBLEPeripheralServer", "createBufferURL", "createCacheManager", "createCameraContext", "createCanvasContext", "createGlobalPayment", "createInferenceSession", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVideoContext", "createVideoDecoder", "createVKSession", "createWebAudioContext", "createWorker", "cropImage", "disableAlertBeforeUnload", "downloadFile", "editImage", "enableAlertBeforeUnload", "enterChatToolMode", "exitMiniProgram", "exitVoIPChat", "faceDetect", "getAccountInfoSync", "getApiCategory", "getAppAuthorizeSetting", "getAppBaseInfo", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundAudioPlayerState", "getBackgroundFetchData", "getBackgroundFetchToken", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getChannelsLiveInfo", "getChannelsLiveNoticeInfo", "getChannelsShareKey", "getChatToolInfo", "getClipboardData", "getCommonConfig", "getConnectedBluetoothDevices", "getConnectedWifi", "getDeviceBenchmarkInfo", "getDeviceInfo", "getDeviceVoIPList", "getEnterOptionsSync", "getExptInfoSync", "getExtConfig", "getExtConfigSync", "getFileSystemManager", "getFuzzyLocation", "getGroupEnterInfo", "getHCEState", "getImageInfo", "getInferenceEnvInfo", "getLaunchOptionsSync", "getLocalIPAddress", "getLocation", "getLogManager", "getMenuButtonBoundingClientRect", "getNetworkType", "getNFCAdapter", "getPerformance", "getPrivacySetting", "getRandomValues", "getRealtimeLogManager", "getRecorderManager", "getRendererUserAgent", "getScreenBrightness", "getScreenRecordingState", "getSecureElementPasses", "getSelectedTextRange", "getSetting", "getShareInfo", "getShowSplashAdStatus", "getSkylineInfo", "getSkylineInfoSync", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoAsync", "getSystemInfoSync", "getSystemSetting", "getUpdateManager", "getUserCryptoManager", "getUserInfo", "getUserProfile", "getVideoInfo", "getWeRunData", "getWifiList", "getWindowInfo", "getXrFrameSystem", "hideHomeButton", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "initFaceDetect", "isBluetoothDevicePaired", "isVKSupport", "join1v1Chat", "joinVoIPChat", "loadBuiltInFontFace", "loadFontFace", "login", "makeBluetoothPair", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "nextTick", "notifyBLECharacteristicValueChange", "notifyGroupMembers", "offAccelerometerChange", "offAfterPageLoad", "offAfterPageUnload", "offApiCategoryChange", "offAppHide", "offAppRoute", "offAppRouteDone", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBatteryInfoChange", "offBeaconServiceChange", "offBeaconUpdate", "offBeforeAppRoute", "offBeforePageLoad", "offBeforePageUnload", "offBLECharacteristicValueChange", "offBLEConnectionStateChange", "offBLEMTUChange", "offBLEPeripheralConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offCopyUrl", "offDeviceMotionChange", "offEmbeddedMiniProgramHeightChange", "offError", "offGeneratePoster", "offGetWifiList", "offGyroscopeChange", "offHCEMessage", "offKeyboardHeightChange", "offKeyDown", "offKeyUp", "offLazyLoadError", "offLocalServiceDiscoveryStop", "offLocalServiceFound", "offLocalServiceLost", "offLocalServiceResolveFail", "offLocationChange", "offLocationChangeError", "offMemoryWarning", "offMenuButtonBoundingClientRectWeightChange", "offNetworkStatusChange", "offNetworkWeakChange", "offPageNotFound", "offParallelStateChange", "offScreenRecordingStateChanged", "offThemeChange", "offUnhandledRejection", "offUserCaptureScreen", "offUserOffTranslation", "offUserTriggerTranslation", "offVoIPChatInterrupted", "offVoIPChatMembersChanged", "offVoIPChatSpeakersChanged", "offVoIPChatStateChanged", "offVoIPVideoMembersChanged", "offWifiConnected", "offWifiConnectedWithPartialInfo", "offWindowResize", "offWindowStateChange", "onAccelerometerChange", "onAfterPageLoad", "onAfterPageUnload", "onApiCategoryChange", "onAppHide", "onAppRoute", "onAppRouteDone", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBackgroundAudioPause", "onBackgroundAudioPlay", "onBackgroundAudioStop", "onBackgroundFetchData", "onBatteryInfoChange", "onBeaconServiceChange", "onBeaconUpdate", "onBeforeAppRoute", "onBeforePageLoad", "onBeforePageUnload", "onBLECharacteristicValueChange", "onBLEConnectionStateChange", "onBLEMTUChange", "onBLEPeripheralConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onCopyUrl", "onDeviceMotionChange", "onEmbeddedMiniProgramHeightChange", "onError", "onGeneratePoster", "onGetWifiList", "onGyroscopeChange", "onHCEMessage", "onKeyboardHeightChange", "onKeyDown", "onKeyUp", "onLazyLoadError", "onLocalServiceDiscoveryStop", "onLocalServiceFound", "onLocalServiceLost", "onLocalServiceResolveFail", "onLocationChange", "onLocationChangeError", "onMemoryWarning", "onMenuButtonBoundingClientRectWeightChange", "onNeedPrivacyAuthorization", "onNetworkStatusChange", "onNetworkWeakChange", "onPageNotFound", "onParallelStateChange", "onScreenRecordingStateChanged", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onThemeChange", "onUnhandledRejection", "onUserCaptureScreen", "onUserOffTranslation", "onUserTriggerTranslation", "onVoIPChatInterrupted", "onVoIPChatMembersChanged", "onVoIPChatSpeakersChanged", "onVoIPChatStateChanged", "onVoIPVideoMembersChanged", "onWifiConnected", "onWifiConnectedWithPartialInfo", "onWindowResize", "onWindowStateChange", "openAppAuthorizeSetting", "openBluetoothAdapter", "openCard", "openChannelsActivity", "openChannelsEvent", "openChannelsLive", "openChannelsLiveNoticeInfo", "openChannelsUserProfile", "openChatTool", "openCustomerServiceChat", "openDocument", "openEmbeddedMiniProgram", "openHKOfflinePayView", "openInquiriesTopic", "openLocation", "openOfficialAccountArticle", "openOfficialAccountChat", "openOfficialAccountProfile", "openPrivacyContract", "openSetting", "openSingleStickerView", "openStickerIPView", "openStickerSetView", "openStoreCouponDetail", "openStoreOrderDetail", "openSystemBluetoothSetting", "openVideoEditor", "pageScrollTo", "pauseBackgroundAudio", "pauseVoice", "playBackgroundAudio", "playVoice", "pluginLogin", "postMessageToReferrerMiniProgram", "postMessageToReferrerPage", "preDownloadSubpackage", "preloadAssets", "preloadSkylineView", "preloadWebview", "previewImage", "previewMedia", "readBLECharacteristicValue", "redirectTo", "reLaunch", "removeSecureElementPass", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "reportEvent", "reportMonitor", "reportPerformance", "request", "requestCommonPayment", "requestDeviceVoIP", "requestFacialVerify", "requestIdleCallback", "requestMerchantTransfer", "requestOrderPayment", "requestPayment", "requestPluginPayment", "requestSubscribeDeviceMessage", "requestSubscribeEmployeeMessage", "requestSubscribeMessage", "requestVirtualPayment", "requirePrivacyAuthorize", "reserveChannelsLive", "restartMiniProgram", "revokeBufferURL", "rewriteRoute", "saveFileToDisk", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "seekBackgroundAudio", "selectGroupMembers", "sendHCEMessage", "sendSms", "sendSocketMessage", "setBackgroundColor", "setBackgroundFetchToken", "setBackgroundTextStyle", "setBLEMTU", "setClipboardData", "setEnable1v1Chat", "setEnableDebug", "setInnerAudioOption", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setTopBarText", "setVisualEffectOnCapture", "setWifiList", "setWindowSize", "shareAppMessageToGroup", "shareEmojiToGroup", "shareFileMessage", "shareFileToGroup", "shareImageToGroup", "shareToOfficialAccount", "shareToWeRun", "shareVideoMessage", "shareVideoToGroup", "showActionSheet", "showLoading", "showModal", "showNavigationBarLoading", "showRedPackage", "showShareImageMenu", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startDeviceMotionListening", "startGyroscope", "startHCE", "startLocalServiceDiscovery", "startLocationUpdate", "startLocationUpdateBackground", "startPullDownRefresh", "startRecord", "startSoterAuthentication", "startWifi", "stopAccelerometer", "stopBackgroundAudio", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopDeviceMotionListening", "stopFaceDetect", "stopGyroscope", "stopHCE", "stopLocalServiceDiscovery", "stopLocationUpdate", "stopPullDownRefresh", "stopRecord", "stopVoice", "stopWifi", "subscribeVoIPVideoMembers", "switchTab", "updateShareMenu", "updateVoIPChatMuteConfig", "updateWeChatApp", "uploadFile", "vibrateLong", "vibrateShort", "writeBLECharacteristicValue"];
|
|
8371
8371
|
declare const WEAPI_ALIPAY_METHODS: readonly ["addPhoneContact", "alert", "arrayBufferToBase64", "base64ToArrayBuffer", "calculateRoute", "call", "cancelBluetoothPair", "canIUse", "canvasToTempFilePath", "checkBeforeAddOrder", "checkIsIfaaEnrolledInDevice", "checkIsSupportIfaaAuthentication", "chooseAlipayContact", "chooseCity", "chooseContact", "chooseDistrict", "chooseImage", "chooseLocation", "choosePhoneContact", "chooseVideo", "clearStorage", "clearStorageSync", "closeBluetoothAdapter", "closeSocket", "compressImage", "confirm", "connectBLEDevice", "connectSocket", "connectWifi", "createAnimation", "createCanvasContext", "createInnerAudioContext", "createIntersectionObserver", "createLottieContext", "createMapContext", "createOffscreenCanvas", "createRewardedAd", "createSelectorQuery", "createVideoContext", "createWebViewContext", "createWorker", "datePicker", "detectFileType", "disableAlertBeforeUnload", "disconnectBLEDevice", "downloadFile", "enableAlertBeforeUnload", "exitMiniProgram", "generateImageFromCode", "getAccessibilityManager", "getAccountInfoSync", "getAddress", "getAppAuthorizeSetting", "getAppBaseInfo", "getAppIdSync", "getAuthCode", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundFetchData", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEDeviceStatus", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getBluetoothPairs", "getClipboard", "getConnectedBluetoothDevices", "getConnectedWifi", "getEnterOptionsSync", "getExtConfig", "getExtConfigSync", "getFileInfo", "getFileSystemManager", "getGeocoder", "getImageInfo", "getLaunchOptionsSync", "getLeftButtonsBoundingClientRect", "getLocalIPAddress", "getLocation", "getMapInfo", "getMenuButtonBoundingClientRect", "getNetworkType", "getOpenUserInfo", "getParentAppId", "getParentAppIdSync", "getPhoneNumber", "getPluginIdSync", "getRecorderManager", "getRunData", "getRunScene", "getSavedFileInfo", "getSavedFileList", "getScreenBrightness", "getServerTime", "getSetting", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoSync", "getSystemSetting", "getTitleColor", "getUpdateManager", "getVideoInfo", "getWifiList", "getWindowInfo", "hideAddToDesktopMenu", "hideAllAddToDesktopMenu", "hideBackHome", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "isScreenReaderEnabled", "loadFontFace", "loadPlugin", "makeBluetoothPair", "makePhoneCall", "multiLevelSelect", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "notifyBLECharacteristicValueChange", "off", "offAccelerometerChange", "offAppHide", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBeaconServiceChange", "offBeaconUpdate", "offBLECharacteristicValueChange", "offBLEConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offComponentError", "offDeviceMotionChange", "offError", "offGetWifiList", "offGyroscopeChange", "offLocatedComplete", "offMemoryWarning", "offNetworkStatusChange", "offPageNotFound", "offSocketClose", "offSocketError", "offSocketMessage", "offSocketOpen", "offUnhandledRejection", "offUserCaptureScreen", "offWifiConnected", "on", "onAccelerometerChange", "onAppHide", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBeaconServiceChange", "onBeaconUpdate", "onBLECharacteristicValueChange", "onBLEConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onComponentError", "onDeviceMotionChange", "onError", "onGetWifiList", "onGyroscopeChange", "onLocatedComplete", "onMemoryWarning", "onNetworkStatusChange", "onPageNotFound", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onUnhandledRejection", "onUserCaptureScreen", "onWifiConnected", "openBluetoothAdapter", "openDocument", "openKBVoucherDetail", "openLocation", "openMerchantTicketList", "openMerchantVoucherList", "openOtherApp", "openSetting", "openTicketDetail", "openTicketList", "openVoucherDetail", "openVoucherList", "optionsSelect", "pageScrollTo", "paySignCenter", "previewImage", "prompt", "readBLECharacteristicValue", "redirectTo", "regionPicker", "registerSSID", "reLaunch", "removeSavedFile", "removeStorage", "removeStorageSync", "removeTabBarBadge", "request", "requestSubscribeMessage", "rsa", "saveFile", "saveFileToDisk", "saveImage", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scan", "sendSocketMessage", "setBackgroundColor", "setBackgroundTextStyle", "setBLEMTU", "setCanPullDown", "setClipboard", "setKeepScreenOn", "setLocatedCity", "setNavigationBar", "setNavigationBarBottomLineColor", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setVisualEffectOnCapture", "setWifiList", "showActionSheet", "showAuthGuide", "showBLEPermissionGuide", "showLoading", "showModal", "showNavigationBarLoading", "showShareMenu", "showSharePanel", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startAPVerify", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startGyroscope", "startIfaaAuthentication", "startPullDownRefresh", "startWifi", "stopAccelerometer", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopGyroscope", "stopPullDownRefresh", "stopWifi", "switchTab", "tradePay", "unregisterSSID", "unsubscribeMessage", "uploadFile", "vibrate", "vibrateLong", "vibrateShort", "watchShake", "writeBLECharacteristicValue"];
|
|
8372
8372
|
declare const WEAPI_DOUYIN_METHODS: readonly ["applyEcCoupon", "applyRefund", "arrayBufferToBase64", "authorize", "base64ToArrayBuffer", "canIPutStuffOverComponent", "canIUse", "canvasToTempFilePath", "checkFollowAwemeState", "checkFollowState", "checkSession", "chooseAddress", "chooseImage", "chooseLocation", "chooseMedia", "clearStorage", "clearStorageSync", "completePaySync", "completeRefundSync", "compressImage", "connectSocket", "continueToPay", "createAnimation", "createBytennEngineContext", "createCanvasContext", "createCloud", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createMapContext", "createMediaRecorder", "createMerchantOrder", "createOffscreenCanvas", "createOrder", "createRefundOrder", "createRewardedVideoAd", "createRtcRoomContext", "createSelectorQuery", "createStickerManager", "createVideoContext", "createWorker", "downloadFile", "exitMiniProgram", "followAwemeUser", "followOfficialAccount", "getAnalysisInfo", "getBackgroundAudioManager", "getClipboardData", "getConnectedWifi", "getCustomButtonBoundingClientRect", "getEnvInfoSync", "getExtConfig", "getExtConfigSync", "getFileInfo", "getFileSystemManager", "getImageInfo", "getLaunchOptionsSync", "getLiveUserInfo", "getLocation", "getMenuButtonBoundingClientRect", "getMenuButtonLayout", "getMicroappInfo", "getRecorderManager", "getRefundOrder", "getRoomInfo", "getSavedFileList", "getScreenBrightness", "getSelfCommentCountDuringPluginRunning", "getSetting", "getShopRecordToken", "getSidebarActivity", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoSync", "getUpdateManager", "getUserInfo", "getUserProfile", "getWifiList", "hideHomeButton", "hideInteractionBar", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "isFollowingAnchor", "login", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "navigateToScene", "navigateToVideoView", "offAppHide", "offAppShow", "offCompassChange", "offError", "offGetWifiList", "offLazyLoadError", "offNetworkStatusChange", "offPageNotFound", "offUnhandledRejection", "offUserCaptureScreen", "offWindowResize", "onAccelerometerChange", "onAppHide", "onAppShow", "onCompassChange", "onError", "onGetWifiList", "onLazyLoadError", "onMemoryWarning", "onNetworkStatusChange", "onPageNotFound", "onReceiveAudiencesFollowAction", "onReceiveSpecifiedComment", "onUnhandledRejection", "onUserCaptureScreen", "onWindowResize", "openAwemeUserProfile", "openLocation", "openSetting", "pageScrollTo", "pay", "preloadDrawAd", "prerenderVideo", "previewImage", "redirectTo", "reLaunch", "removeSavedFile", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "request", "requestSubscribeMessage", "saveFile", "saveImageToPhotosAlbum", "scanCode", "setClipboardData", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "showActionSheet", "showDouyinOpenAuth", "showFavoriteGuide", "showInteractionBar", "showLoading", "showModal", "showNavigationBarLoading", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startCompass", "startPullDownRefresh", "stopAccelerometer", "stopCompass", "stopPullDownRefresh", "submitEcCustomGoods", "subscribeAudiencesFollowAction", "subscribeSpecifiedContentComment", "subscribeSpecifiedUserComment", "switchTab", "unsubscribeAllSpecifiedContentComment", "unsubscribeAllSpecifiedUserComment", "unsubscribeAudiencesFollowAction", "updateExitGuideWindowInfo", "updateShopMemberPoints", "updateSidebarActivity", "uploadFile", "vibrateLong", "vibrateShort"];
|
|
8373
|
-
declare const WEAPI_MINIPROGRAM_METHODS: readonly ["addCard", "addFileToFavorites", "addPaymentPassFinish", "addPaymentPassGetCertificateData", "addPhoneCalendar", "addPhoneContact", "addPhoneRepeatCalendar", "addVideoToFavorites", "arrayBufferToBase64", "authorize", "authorizeForMiniProgram", "authPrivateMessage", "base64ToArrayBuffer", "batchGetStorage", "batchGetStorageSync", "batchSetStorage", "batchSetStorageSync", "bindEmployeeRelation", "canAddSecureElementPass", "cancelIdleCallback", "canIUse", "canvasGetImageData", "canvasPutImageData", "canvasToTempFilePath", "checkDeviceSupportHevc", "checkEmployeeRelation", "checkIsAddedToMyMiniProgram", "checkIsOpenAccessibility", "checkIsPictureInPictureActive", "checkIsSoterEnrolledInDevice", "checkIsSupportSoterAuthentication", "checkSession", "chooseAddress", "chooseContact", "chooseImage", "chooseInvoice", "chooseInvoiceTitle", "chooseLicensePlate", "chooseLocation", "chooseMedia", "chooseMessageFile", "choosePoi", "chooseVideo", "clearStorage", "clearStorageSync", "closeBLEConnection", "closeBluetoothAdapter", "closeSocket", "compressImage", "compressVideo", "connectSocket", "connectWifi", "createAnimation", "createAudioContext", "createBLEConnection", "createBLEPeripheralServer", "createBufferURL", "createCacheManager", "createCameraContext", "createCanvasContext", "createGlobalPayment", "createInferenceSession", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVideoContext", "createVideoDecoder", "createVKSession", "createWebAudioContext", "createWorker", "cropImage", "disableAlertBeforeUnload", "downloadFile", "editImage", "enableAlertBeforeUnload", "exitMiniProgram", "exitVoIPChat", "faceDetect", "getAccountInfoSync", "getApiCategory", "getAppAuthorizeSetting", "getAppBaseInfo", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundAudioPlayerState", "getBackgroundFetchData", "getBackgroundFetchToken", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getChannelsLiveInfo", "getChannelsLiveNoticeInfo", "getChannelsShareKey", "getChatToolInfo", "getClipboardData", "getCommonConfig", "getConnectedBluetoothDevices", "getConnectedWifi", "getDeviceBenchmarkInfo", "getDeviceInfo", "getDeviceVoIPList", "getEnterOptionsSync", "getExptInfoSync", "getExtConfig", "getExtConfigSync", "getFileSystemManager", "getFuzzyLocation", "getGroupEnterInfo", "getHCEState", "getImageInfo", "getInferenceEnvInfo", "getLaunchOptionsSync", "getLocalIPAddress", "getLocation", "getLogManager", "getMenuButtonBoundingClientRect", "getNetworkType", "getNFCAdapter", "getPerformance", "getPrivacySetting", "getRandomValues", "getRealtimeLogManager", "getRecorderManager", "getRendererUserAgent", "getScreenBrightness", "getScreenRecordingState", "getSecureElementPasses", "getSelectedTextRange", "getSetting", "getShareInfo", "getShowSplashAdStatus", "getSkylineInfo", "getSkylineInfoSync", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoAsync", "getSystemInfoSync", "getSystemSetting", "getUpdateManager", "getUserCryptoManager", "getUserInfo", "getUserProfile", "getVideoInfo", "getWeRunData", "getWifiList", "getWindowInfo", "getXrFrameSystem", "hideHomeButton", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "initFaceDetect", "isBluetoothDevicePaired", "isVKSupport", "join1v1Chat", "joinVoIPChat", "loadBuiltInFontFace", "loadFontFace", "login", "makeBluetoothPair", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "nextTick", "notifyBLECharacteristicValueChange", "notifyGroupMembers", "offAccelerometerChange", "offAfterPageLoad", "offAfterPageUnload", "offApiCategoryChange", "offAppHide", "offAppRoute", "offAppRouteDone", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBatteryInfoChange", "offBeaconServiceChange", "offBeaconUpdate", "offBeforeAppRoute", "offBeforePageLoad", "offBeforePageUnload", "offBLECharacteristicValueChange", "offBLEConnectionStateChange", "offBLEMTUChange", "offBLEPeripheralConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offCopyUrl", "offDeviceMotionChange", "offEmbeddedMiniProgramHeightChange", "offError", "offGeneratePoster", "offGetWifiList", "offGyroscopeChange", "offHCEMessage", "offKeyboardHeightChange", "offKeyDown", "offKeyUp", "offLazyLoadError", "offLocalServiceDiscoveryStop", "offLocalServiceFound", "offLocalServiceLost", "offLocalServiceResolveFail", "offLocationChange", "offLocationChangeError", "offMemoryWarning", "offMenuButtonBoundingClientRectWeightChange", "offNetworkStatusChange", "offNetworkWeakChange", "offPageNotFound", "offParallelStateChange", "offScreenRecordingStateChanged", "offThemeChange", "offUnhandledRejection", "offUserCaptureScreen", "offUserOffTranslation", "offUserTriggerTranslation", "offVoIPChatInterrupted", "offVoIPChatMembersChanged", "offVoIPChatSpeakersChanged", "offVoIPChatStateChanged", "offVoIPVideoMembersChanged", "offWifiConnected", "offWifiConnectedWithPartialInfo", "offWindowResize", "offWindowStateChange", "onAccelerometerChange", "onAfterPageLoad", "onAfterPageUnload", "onApiCategoryChange", "onAppHide", "onAppRoute", "onAppRouteDone", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBackgroundAudioPause", "onBackgroundAudioPlay", "onBackgroundAudioStop", "onBackgroundFetchData", "onBatteryInfoChange", "onBeaconServiceChange", "onBeaconUpdate", "onBeforeAppRoute", "onBeforePageLoad", "onBeforePageUnload", "onBLECharacteristicValueChange", "onBLEConnectionStateChange", "onBLEMTUChange", "onBLEPeripheralConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onCopyUrl", "onDeviceMotionChange", "onEmbeddedMiniProgramHeightChange", "onError", "onGeneratePoster", "onGetWifiList", "onGyroscopeChange", "onHCEMessage", "onKeyboardHeightChange", "onKeyDown", "onKeyUp", "onLazyLoadError", "onLocalServiceDiscoveryStop", "onLocalServiceFound", "onLocalServiceLost", "onLocalServiceResolveFail", "onLocationChange", "onLocationChangeError", "onMemoryWarning", "onMenuButtonBoundingClientRectWeightChange", "onNeedPrivacyAuthorization", "onNetworkStatusChange", "onNetworkWeakChange", "onPageNotFound", "onParallelStateChange", "onScreenRecordingStateChanged", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onThemeChange", "onUnhandledRejection", "onUserCaptureScreen", "onUserOffTranslation", "onUserTriggerTranslation", "onVoIPChatInterrupted", "onVoIPChatMembersChanged", "onVoIPChatSpeakersChanged", "onVoIPChatStateChanged", "onVoIPVideoMembersChanged", "onWifiConnected", "onWifiConnectedWithPartialInfo", "onWindowResize", "onWindowStateChange", "openAppAuthorizeSetting", "openBluetoothAdapter", "openCard", "openChannelsActivity", "openChannelsEvent", "openChannelsLive", "openChannelsLiveNoticeInfo", "openChannelsUserProfile", "openChatTool", "openCustomerServiceChat", "openDocument", "openEmbeddedMiniProgram", "openHKOfflinePayView", "openInquiriesTopic", "openLocation", "openOfficialAccountArticle", "openOfficialAccountChat", "openOfficialAccountProfile", "openPrivacyContract", "openSetting", "openSingleStickerView", "openStickerIPView", "openStickerSetView", "openStoreCouponDetail", "openStoreOrderDetail", "openSystemBluetoothSetting", "openVideoEditor", "pageScrollTo", "pauseBackgroundAudio", "pauseVoice", "playBackgroundAudio", "playVoice", "pluginLogin", "postMessageToReferrerMiniProgram", "postMessageToReferrerPage", "preDownloadSubpackage", "preloadAssets", "preloadSkylineView", "preloadWebview", "previewImage", "previewMedia", "readBLECharacteristicValue", "redirectTo", "reLaunch", "removeSecureElementPass", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "reportEvent", "reportMonitor", "reportPerformance", "request", "requestCommonPayment", "requestDeviceVoIP", "requestIdleCallback", "requestMerchantTransfer", "requestOrderPayment", "requestPayment", "requestPluginPayment", "requestSubscribeDeviceMessage", "requestSubscribeEmployeeMessage", "requestSubscribeMessage", "requestVirtualPayment", "requirePrivacyAuthorize", "reserveChannelsLive", "restartMiniProgram", "revokeBufferURL", "rewriteRoute", "saveFileToDisk", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "seekBackgroundAudio", "selectGroupMembers", "sendHCEMessage", "sendSms", "sendSocketMessage", "setBackgroundColor", "setBackgroundFetchToken", "setBackgroundTextStyle", "setBLEMTU", "setClipboardData", "setEnable1v1Chat", "setEnableDebug", "setInnerAudioOption", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setTopBarText", "setVisualEffectOnCapture", "setWifiList", "setWindowSize", "shareAppMessageToGroup", "shareEmojiToGroup", "shareFileMessage", "shareFileToGroup", "shareImageToGroup", "shareToOfficialAccount", "shareToWeRun", "shareVideoMessage", "shareVideoToGroup", "showActionSheet", "showLoading", "showModal", "showNavigationBarLoading", "showRedPackage", "showShareImageMenu", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startDeviceMotionListening", "startGyroscope", "startHCE", "startLocalServiceDiscovery", "startLocationUpdate", "startLocationUpdateBackground", "startPullDownRefresh", "startRecord", "startSoterAuthentication", "startWifi", "stopAccelerometer", "stopBackgroundAudio", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopDeviceMotionListening", "stopFaceDetect", "stopGyroscope", "stopHCE", "stopLocalServiceDiscovery", "stopLocationUpdate", "stopPullDownRefresh", "stopRecord", "stopVoice", "stopWifi", "subscribeVoIPVideoMembers", "switchTab", "updateShareMenu", "updateVoIPChatMuteConfig", "updateWeChatApp", "uploadFile", "vibrateLong", "vibrateShort", "writeBLECharacteristicValue"];
|
|
8374
|
-
declare const WEAPI_MINIPROGRAM_WECHAT_METHODS: readonly ["addCard", "addFileToFavorites", "addPaymentPassFinish", "addPaymentPassGetCertificateData", "addPhoneCalendar", "addPhoneContact", "addPhoneRepeatCalendar", "addVideoToFavorites", "arrayBufferToBase64", "authorize", "authorizeForMiniProgram", "authPrivateMessage", "base64ToArrayBuffer", "batchGetStorage", "batchGetStorageSync", "batchSetStorage", "batchSetStorageSync", "bindEmployeeRelation", "canAddSecureElementPass", "cancelIdleCallback", "canIUse", "canvasGetImageData", "canvasPutImageData", "canvasToTempFilePath", "checkDeviceSupportHevc", "checkEmployeeRelation", "checkIsAddedToMyMiniProgram", "checkIsOpenAccessibility", "checkIsPictureInPictureActive", "checkIsSoterEnrolledInDevice", "checkIsSupportSoterAuthentication", "checkSession", "chooseAddress", "chooseContact", "chooseImage", "chooseInvoice", "chooseInvoiceTitle", "chooseLicensePlate", "chooseLocation", "chooseMedia", "chooseMessageFile", "choosePoi", "chooseVideo", "clearStorage", "clearStorageSync", "closeBLEConnection", "closeBluetoothAdapter", "closeSocket", "compressImage", "compressVideo", "connectSocket", "connectWifi", "createAnimation", "createAudioContext", "createBLEConnection", "createBLEPeripheralServer", "createBufferURL", "createCacheManager", "createCameraContext", "createCanvasContext", "createGlobalPayment", "createInferenceSession", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVideoContext", "createVideoDecoder", "createVKSession", "createWebAudioContext", "createWorker", "cropImage", "disableAlertBeforeUnload", "downloadFile", "editImage", "enableAlertBeforeUnload", "exitMiniProgram", "exitVoIPChat", "faceDetect", "getAccountInfoSync", "getApiCategory", "getAppAuthorizeSetting", "getAppBaseInfo", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundAudioPlayerState", "getBackgroundFetchData", "getBackgroundFetchToken", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getChannelsLiveInfo", "getChannelsLiveNoticeInfo", "getChannelsShareKey", "getChatToolInfo", "getClipboardData", "getCommonConfig", "getConnectedBluetoothDevices", "getConnectedWifi", "getDeviceBenchmarkInfo", "getDeviceInfo", "getDeviceVoIPList", "getEnterOptionsSync", "getExptInfoSync", "getExtConfig", "getExtConfigSync", "getFileSystemManager", "getFuzzyLocation", "getGroupEnterInfo", "getHCEState", "getImageInfo", "getInferenceEnvInfo", "getLaunchOptionsSync", "getLocalIPAddress", "getLocation", "getLogManager", "getMenuButtonBoundingClientRect", "getNetworkType", "getNFCAdapter", "getPerformance", "getPrivacySetting", "getRandomValues", "getRealtimeLogManager", "getRecorderManager", "getRendererUserAgent", "getScreenBrightness", "getScreenRecordingState", "getSecureElementPasses", "getSelectedTextRange", "getSetting", "getShareInfo", "getShowSplashAdStatus", "getSkylineInfo", "getSkylineInfoSync", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoAsync", "getSystemInfoSync", "getSystemSetting", "getUpdateManager", "getUserCryptoManager", "getUserInfo", "getUserProfile", "getVideoInfo", "getWeRunData", "getWifiList", "getWindowInfo", "getXrFrameSystem", "hideHomeButton", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "initFaceDetect", "isBluetoothDevicePaired", "isVKSupport", "join1v1Chat", "joinVoIPChat", "loadBuiltInFontFace", "loadFontFace", "login", "makeBluetoothPair", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "nextTick", "notifyBLECharacteristicValueChange", "notifyGroupMembers", "offAccelerometerChange", "offAfterPageLoad", "offAfterPageUnload", "offApiCategoryChange", "offAppHide", "offAppRoute", "offAppRouteDone", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBatteryInfoChange", "offBeaconServiceChange", "offBeaconUpdate", "offBeforeAppRoute", "offBeforePageLoad", "offBeforePageUnload", "offBLECharacteristicValueChange", "offBLEConnectionStateChange", "offBLEMTUChange", "offBLEPeripheralConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offCopyUrl", "offDeviceMotionChange", "offEmbeddedMiniProgramHeightChange", "offError", "offGeneratePoster", "offGetWifiList", "offGyroscopeChange", "offHCEMessage", "offKeyboardHeightChange", "offKeyDown", "offKeyUp", "offLazyLoadError", "offLocalServiceDiscoveryStop", "offLocalServiceFound", "offLocalServiceLost", "offLocalServiceResolveFail", "offLocationChange", "offLocationChangeError", "offMemoryWarning", "offMenuButtonBoundingClientRectWeightChange", "offNetworkStatusChange", "offNetworkWeakChange", "offPageNotFound", "offParallelStateChange", "offScreenRecordingStateChanged", "offThemeChange", "offUnhandledRejection", "offUserCaptureScreen", "offUserOffTranslation", "offUserTriggerTranslation", "offVoIPChatInterrupted", "offVoIPChatMembersChanged", "offVoIPChatSpeakersChanged", "offVoIPChatStateChanged", "offVoIPVideoMembersChanged", "offWifiConnected", "offWifiConnectedWithPartialInfo", "offWindowResize", "offWindowStateChange", "onAccelerometerChange", "onAfterPageLoad", "onAfterPageUnload", "onApiCategoryChange", "onAppHide", "onAppRoute", "onAppRouteDone", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBackgroundAudioPause", "onBackgroundAudioPlay", "onBackgroundAudioStop", "onBackgroundFetchData", "onBatteryInfoChange", "onBeaconServiceChange", "onBeaconUpdate", "onBeforeAppRoute", "onBeforePageLoad", "onBeforePageUnload", "onBLECharacteristicValueChange", "onBLEConnectionStateChange", "onBLEMTUChange", "onBLEPeripheralConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onCopyUrl", "onDeviceMotionChange", "onEmbeddedMiniProgramHeightChange", "onError", "onGeneratePoster", "onGetWifiList", "onGyroscopeChange", "onHCEMessage", "onKeyboardHeightChange", "onKeyDown", "onKeyUp", "onLazyLoadError", "onLocalServiceDiscoveryStop", "onLocalServiceFound", "onLocalServiceLost", "onLocalServiceResolveFail", "onLocationChange", "onLocationChangeError", "onMemoryWarning", "onMenuButtonBoundingClientRectWeightChange", "onNeedPrivacyAuthorization", "onNetworkStatusChange", "onNetworkWeakChange", "onPageNotFound", "onParallelStateChange", "onScreenRecordingStateChanged", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onThemeChange", "onUnhandledRejection", "onUserCaptureScreen", "onUserOffTranslation", "onUserTriggerTranslation", "onVoIPChatInterrupted", "onVoIPChatMembersChanged", "onVoIPChatSpeakersChanged", "onVoIPChatStateChanged", "onVoIPVideoMembersChanged", "onWifiConnected", "onWifiConnectedWithPartialInfo", "onWindowResize", "onWindowStateChange", "openAppAuthorizeSetting", "openBluetoothAdapter", "openCard", "openChannelsActivity", "openChannelsEvent", "openChannelsLive", "openChannelsLiveNoticeInfo", "openChannelsUserProfile", "openChatTool", "openCustomerServiceChat", "openDocument", "openEmbeddedMiniProgram", "openHKOfflinePayView", "openInquiriesTopic", "openLocation", "openOfficialAccountArticle", "openOfficialAccountChat", "openOfficialAccountProfile", "openPrivacyContract", "openSetting", "openSingleStickerView", "openStickerIPView", "openStickerSetView", "openStoreCouponDetail", "openStoreOrderDetail", "openSystemBluetoothSetting", "openVideoEditor", "pageScrollTo", "pauseBackgroundAudio", "pauseVoice", "playBackgroundAudio", "playVoice", "pluginLogin", "postMessageToReferrerMiniProgram", "postMessageToReferrerPage", "preDownloadSubpackage", "preloadAssets", "preloadSkylineView", "preloadWebview", "previewImage", "previewMedia", "readBLECharacteristicValue", "redirectTo", "reLaunch", "removeSecureElementPass", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "reportEvent", "reportMonitor", "reportPerformance", "request", "requestCommonPayment", "requestDeviceVoIP", "requestIdleCallback", "requestMerchantTransfer", "requestOrderPayment", "requestPayment", "requestPluginPayment", "requestSubscribeDeviceMessage", "requestSubscribeEmployeeMessage", "requestSubscribeMessage", "requestVirtualPayment", "requirePrivacyAuthorize", "reserveChannelsLive", "restartMiniProgram", "revokeBufferURL", "rewriteRoute", "saveFileToDisk", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "seekBackgroundAudio", "selectGroupMembers", "sendHCEMessage", "sendSms", "sendSocketMessage", "setBackgroundColor", "setBackgroundFetchToken", "setBackgroundTextStyle", "setBLEMTU", "setClipboardData", "setEnable1v1Chat", "setEnableDebug", "setInnerAudioOption", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setTopBarText", "setVisualEffectOnCapture", "setWifiList", "setWindowSize", "shareAppMessageToGroup", "shareEmojiToGroup", "shareFileMessage", "shareFileToGroup", "shareImageToGroup", "shareToOfficialAccount", "shareToWeRun", "shareVideoMessage", "shareVideoToGroup", "showActionSheet", "showLoading", "showModal", "showNavigationBarLoading", "showRedPackage", "showShareImageMenu", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startDeviceMotionListening", "startGyroscope", "startHCE", "startLocalServiceDiscovery", "startLocationUpdate", "startLocationUpdateBackground", "startPullDownRefresh", "startRecord", "startSoterAuthentication", "startWifi", "stopAccelerometer", "stopBackgroundAudio", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopDeviceMotionListening", "stopFaceDetect", "stopGyroscope", "stopHCE", "stopLocalServiceDiscovery", "stopLocationUpdate", "stopPullDownRefresh", "stopRecord", "stopVoice", "stopWifi", "subscribeVoIPVideoMembers", "switchTab", "updateShareMenu", "updateVoIPChatMuteConfig", "updateWeChatApp", "uploadFile", "vibrateLong", "vibrateShort", "writeBLECharacteristicValue"];
|
|
8373
|
+
declare const WEAPI_MINIPROGRAM_METHODS: readonly ["addCard", "addFileToFavorites", "addPaymentPassFinish", "addPaymentPassGetCertificateData", "addPhoneCalendar", "addPhoneContact", "addPhoneRepeatCalendar", "addVideoToFavorites", "arrayBufferToBase64", "authorize", "authorizeForMiniProgram", "authPrivateMessage", "base64ToArrayBuffer", "batchGetStorage", "batchGetStorageSync", "batchSetStorage", "batchSetStorageSync", "bindEmployeeRelation", "canAddSecureElementPass", "cancelIdleCallback", "canIUse", "canvasGetImageData", "canvasPutImageData", "canvasToTempFilePath", "checkDeviceSupportHevc", "checkEmployeeRelation", "checkIsAddedToMyMiniProgram", "checkIsOpenAccessibility", "checkIsPictureInPictureActive", "checkIsSoterEnrolledInDevice", "checkIsSupportFacialRecognition", "checkIsSupportSoterAuthentication", "checkSession", "chooseAddress", "chooseContact", "chooseImage", "chooseInvoice", "chooseInvoiceTitle", "chooseLicensePlate", "chooseLocation", "chooseMedia", "chooseMessageFile", "choosePoi", "chooseVideo", "clearStorage", "clearStorageSync", "closeBLEConnection", "closeBluetoothAdapter", "closeSocket", "compressImage", "compressVideo", "connectSocket", "connectWifi", "createAnimation", "createAudioContext", "createBLEConnection", "createBLEPeripheralServer", "createBufferURL", "createCacheManager", "createCameraContext", "createCanvasContext", "createGlobalPayment", "createInferenceSession", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVideoContext", "createVideoDecoder", "createVKSession", "createWebAudioContext", "createWorker", "cropImage", "disableAlertBeforeUnload", "downloadFile", "editImage", "enableAlertBeforeUnload", "enterChatToolMode", "exitMiniProgram", "exitVoIPChat", "faceDetect", "getAccountInfoSync", "getApiCategory", "getAppAuthorizeSetting", "getAppBaseInfo", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundAudioPlayerState", "getBackgroundFetchData", "getBackgroundFetchToken", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getChannelsLiveInfo", "getChannelsLiveNoticeInfo", "getChannelsShareKey", "getChatToolInfo", "getClipboardData", "getCommonConfig", "getConnectedBluetoothDevices", "getConnectedWifi", "getDeviceBenchmarkInfo", "getDeviceInfo", "getDeviceVoIPList", "getEnterOptionsSync", "getExptInfoSync", "getExtConfig", "getExtConfigSync", "getFileSystemManager", "getFuzzyLocation", "getGroupEnterInfo", "getHCEState", "getImageInfo", "getInferenceEnvInfo", "getLaunchOptionsSync", "getLocalIPAddress", "getLocation", "getLogManager", "getMenuButtonBoundingClientRect", "getNetworkType", "getNFCAdapter", "getPerformance", "getPrivacySetting", "getRandomValues", "getRealtimeLogManager", "getRecorderManager", "getRendererUserAgent", "getScreenBrightness", "getScreenRecordingState", "getSecureElementPasses", "getSelectedTextRange", "getSetting", "getShareInfo", "getShowSplashAdStatus", "getSkylineInfo", "getSkylineInfoSync", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoAsync", "getSystemInfoSync", "getSystemSetting", "getUpdateManager", "getUserCryptoManager", "getUserInfo", "getUserProfile", "getVideoInfo", "getWeRunData", "getWifiList", "getWindowInfo", "getXrFrameSystem", "hideHomeButton", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "initFaceDetect", "isBluetoothDevicePaired", "isVKSupport", "join1v1Chat", "joinVoIPChat", "loadBuiltInFontFace", "loadFontFace", "login", "makeBluetoothPair", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "nextTick", "notifyBLECharacteristicValueChange", "notifyGroupMembers", "offAccelerometerChange", "offAfterPageLoad", "offAfterPageUnload", "offApiCategoryChange", "offAppHide", "offAppRoute", "offAppRouteDone", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBatteryInfoChange", "offBeaconServiceChange", "offBeaconUpdate", "offBeforeAppRoute", "offBeforePageLoad", "offBeforePageUnload", "offBLECharacteristicValueChange", "offBLEConnectionStateChange", "offBLEMTUChange", "offBLEPeripheralConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offCopyUrl", "offDeviceMotionChange", "offEmbeddedMiniProgramHeightChange", "offError", "offGeneratePoster", "offGetWifiList", "offGyroscopeChange", "offHCEMessage", "offKeyboardHeightChange", "offKeyDown", "offKeyUp", "offLazyLoadError", "offLocalServiceDiscoveryStop", "offLocalServiceFound", "offLocalServiceLost", "offLocalServiceResolveFail", "offLocationChange", "offLocationChangeError", "offMemoryWarning", "offMenuButtonBoundingClientRectWeightChange", "offNetworkStatusChange", "offNetworkWeakChange", "offPageNotFound", "offParallelStateChange", "offScreenRecordingStateChanged", "offThemeChange", "offUnhandledRejection", "offUserCaptureScreen", "offUserOffTranslation", "offUserTriggerTranslation", "offVoIPChatInterrupted", "offVoIPChatMembersChanged", "offVoIPChatSpeakersChanged", "offVoIPChatStateChanged", "offVoIPVideoMembersChanged", "offWifiConnected", "offWifiConnectedWithPartialInfo", "offWindowResize", "offWindowStateChange", "onAccelerometerChange", "onAfterPageLoad", "onAfterPageUnload", "onApiCategoryChange", "onAppHide", "onAppRoute", "onAppRouteDone", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBackgroundAudioPause", "onBackgroundAudioPlay", "onBackgroundAudioStop", "onBackgroundFetchData", "onBatteryInfoChange", "onBeaconServiceChange", "onBeaconUpdate", "onBeforeAppRoute", "onBeforePageLoad", "onBeforePageUnload", "onBLECharacteristicValueChange", "onBLEConnectionStateChange", "onBLEMTUChange", "onBLEPeripheralConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onCopyUrl", "onDeviceMotionChange", "onEmbeddedMiniProgramHeightChange", "onError", "onGeneratePoster", "onGetWifiList", "onGyroscopeChange", "onHCEMessage", "onKeyboardHeightChange", "onKeyDown", "onKeyUp", "onLazyLoadError", "onLocalServiceDiscoveryStop", "onLocalServiceFound", "onLocalServiceLost", "onLocalServiceResolveFail", "onLocationChange", "onLocationChangeError", "onMemoryWarning", "onMenuButtonBoundingClientRectWeightChange", "onNeedPrivacyAuthorization", "onNetworkStatusChange", "onNetworkWeakChange", "onPageNotFound", "onParallelStateChange", "onScreenRecordingStateChanged", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onThemeChange", "onUnhandledRejection", "onUserCaptureScreen", "onUserOffTranslation", "onUserTriggerTranslation", "onVoIPChatInterrupted", "onVoIPChatMembersChanged", "onVoIPChatSpeakersChanged", "onVoIPChatStateChanged", "onVoIPVideoMembersChanged", "onWifiConnected", "onWifiConnectedWithPartialInfo", "onWindowResize", "onWindowStateChange", "openAppAuthorizeSetting", "openBluetoothAdapter", "openCard", "openChannelsActivity", "openChannelsEvent", "openChannelsLive", "openChannelsLiveNoticeInfo", "openChannelsUserProfile", "openChatTool", "openCustomerServiceChat", "openDocument", "openEmbeddedMiniProgram", "openHKOfflinePayView", "openInquiriesTopic", "openLocation", "openOfficialAccountArticle", "openOfficialAccountChat", "openOfficialAccountProfile", "openPrivacyContract", "openSetting", "openSingleStickerView", "openStickerIPView", "openStickerSetView", "openStoreCouponDetail", "openStoreOrderDetail", "openSystemBluetoothSetting", "openVideoEditor", "pageScrollTo", "pauseBackgroundAudio", "pauseVoice", "playBackgroundAudio", "playVoice", "pluginLogin", "postMessageToReferrerMiniProgram", "postMessageToReferrerPage", "preDownloadSubpackage", "preloadAssets", "preloadSkylineView", "preloadWebview", "previewImage", "previewMedia", "readBLECharacteristicValue", "redirectTo", "reLaunch", "removeSecureElementPass", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "reportEvent", "reportMonitor", "reportPerformance", "request", "requestCommonPayment", "requestDeviceVoIP", "requestFacialVerify", "requestIdleCallback", "requestMerchantTransfer", "requestOrderPayment", "requestPayment", "requestPluginPayment", "requestSubscribeDeviceMessage", "requestSubscribeEmployeeMessage", "requestSubscribeMessage", "requestVirtualPayment", "requirePrivacyAuthorize", "reserveChannelsLive", "restartMiniProgram", "revokeBufferURL", "rewriteRoute", "saveFileToDisk", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "seekBackgroundAudio", "selectGroupMembers", "sendHCEMessage", "sendSms", "sendSocketMessage", "setBackgroundColor", "setBackgroundFetchToken", "setBackgroundTextStyle", "setBLEMTU", "setClipboardData", "setEnable1v1Chat", "setEnableDebug", "setInnerAudioOption", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setTopBarText", "setVisualEffectOnCapture", "setWifiList", "setWindowSize", "shareAppMessageToGroup", "shareEmojiToGroup", "shareFileMessage", "shareFileToGroup", "shareImageToGroup", "shareToOfficialAccount", "shareToWeRun", "shareVideoMessage", "shareVideoToGroup", "showActionSheet", "showLoading", "showModal", "showNavigationBarLoading", "showRedPackage", "showShareImageMenu", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startDeviceMotionListening", "startGyroscope", "startHCE", "startLocalServiceDiscovery", "startLocationUpdate", "startLocationUpdateBackground", "startPullDownRefresh", "startRecord", "startSoterAuthentication", "startWifi", "stopAccelerometer", "stopBackgroundAudio", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopDeviceMotionListening", "stopFaceDetect", "stopGyroscope", "stopHCE", "stopLocalServiceDiscovery", "stopLocationUpdate", "stopPullDownRefresh", "stopRecord", "stopVoice", "stopWifi", "subscribeVoIPVideoMembers", "switchTab", "updateShareMenu", "updateVoIPChatMuteConfig", "updateWeChatApp", "uploadFile", "vibrateLong", "vibrateShort", "writeBLECharacteristicValue"];
|
|
8374
|
+
declare const WEAPI_MINIPROGRAM_WECHAT_METHODS: readonly ["addCard", "addFileToFavorites", "addPaymentPassFinish", "addPaymentPassGetCertificateData", "addPhoneCalendar", "addPhoneContact", "addPhoneRepeatCalendar", "addVideoToFavorites", "arrayBufferToBase64", "authorize", "authorizeForMiniProgram", "authPrivateMessage", "base64ToArrayBuffer", "batchGetStorage", "batchGetStorageSync", "batchSetStorage", "batchSetStorageSync", "bindEmployeeRelation", "canAddSecureElementPass", "cancelIdleCallback", "canIUse", "canvasGetImageData", "canvasPutImageData", "canvasToTempFilePath", "checkDeviceSupportHevc", "checkEmployeeRelation", "checkIsAddedToMyMiniProgram", "checkIsOpenAccessibility", "checkIsPictureInPictureActive", "checkIsSoterEnrolledInDevice", "checkIsSupportFacialRecognition", "checkIsSupportSoterAuthentication", "checkSession", "chooseAddress", "chooseContact", "chooseImage", "chooseInvoice", "chooseInvoiceTitle", "chooseLicensePlate", "chooseLocation", "chooseMedia", "chooseMessageFile", "choosePoi", "chooseVideo", "clearStorage", "clearStorageSync", "closeBLEConnection", "closeBluetoothAdapter", "closeSocket", "compressImage", "compressVideo", "connectSocket", "connectWifi", "createAnimation", "createAudioContext", "createBLEConnection", "createBLEPeripheralServer", "createBufferURL", "createCacheManager", "createCameraContext", "createCanvasContext", "createGlobalPayment", "createInferenceSession", "createInnerAudioContext", "createIntersectionObserver", "createInterstitialAd", "createLivePlayerContext", "createLivePusherContext", "createMapContext", "createMediaAudioPlayer", "createMediaContainer", "createMediaRecorder", "createOffscreenCanvas", "createRewardedVideoAd", "createSelectorQuery", "createTCPSocket", "createUDPSocket", "createVideoContext", "createVideoDecoder", "createVKSession", "createWebAudioContext", "createWorker", "cropImage", "disableAlertBeforeUnload", "downloadFile", "editImage", "enableAlertBeforeUnload", "enterChatToolMode", "exitMiniProgram", "exitVoIPChat", "faceDetect", "getAccountInfoSync", "getApiCategory", "getAppAuthorizeSetting", "getAppBaseInfo", "getAvailableAudioSources", "getBackgroundAudioManager", "getBackgroundAudioPlayerState", "getBackgroundFetchData", "getBackgroundFetchToken", "getBatteryInfo", "getBatteryInfoSync", "getBeacons", "getBLEDeviceCharacteristics", "getBLEDeviceRSSI", "getBLEDeviceServices", "getBLEMTU", "getBluetoothAdapterState", "getBluetoothDevices", "getChannelsLiveInfo", "getChannelsLiveNoticeInfo", "getChannelsShareKey", "getChatToolInfo", "getClipboardData", "getCommonConfig", "getConnectedBluetoothDevices", "getConnectedWifi", "getDeviceBenchmarkInfo", "getDeviceInfo", "getDeviceVoIPList", "getEnterOptionsSync", "getExptInfoSync", "getExtConfig", "getExtConfigSync", "getFileSystemManager", "getFuzzyLocation", "getGroupEnterInfo", "getHCEState", "getImageInfo", "getInferenceEnvInfo", "getLaunchOptionsSync", "getLocalIPAddress", "getLocation", "getLogManager", "getMenuButtonBoundingClientRect", "getNetworkType", "getNFCAdapter", "getPerformance", "getPrivacySetting", "getRandomValues", "getRealtimeLogManager", "getRecorderManager", "getRendererUserAgent", "getScreenBrightness", "getScreenRecordingState", "getSecureElementPasses", "getSelectedTextRange", "getSetting", "getShareInfo", "getShowSplashAdStatus", "getSkylineInfo", "getSkylineInfoSync", "getStorage", "getStorageInfo", "getStorageInfoSync", "getStorageSync", "getSystemInfo", "getSystemInfoAsync", "getSystemInfoSync", "getSystemSetting", "getUpdateManager", "getUserCryptoManager", "getUserInfo", "getUserProfile", "getVideoInfo", "getWeRunData", "getWifiList", "getWindowInfo", "getXrFrameSystem", "hideHomeButton", "hideKeyboard", "hideLoading", "hideNavigationBarLoading", "hideShareMenu", "hideTabBar", "hideTabBarRedDot", "hideToast", "initFaceDetect", "isBluetoothDevicePaired", "isVKSupport", "join1v1Chat", "joinVoIPChat", "loadBuiltInFontFace", "loadFontFace", "login", "makeBluetoothPair", "makePhoneCall", "navigateBack", "navigateBackMiniProgram", "navigateTo", "navigateToMiniProgram", "nextTick", "notifyBLECharacteristicValueChange", "notifyGroupMembers", "offAccelerometerChange", "offAfterPageLoad", "offAfterPageUnload", "offApiCategoryChange", "offAppHide", "offAppRoute", "offAppRouteDone", "offAppShow", "offAudioInterruptionBegin", "offAudioInterruptionEnd", "offBatteryInfoChange", "offBeaconServiceChange", "offBeaconUpdate", "offBeforeAppRoute", "offBeforePageLoad", "offBeforePageUnload", "offBLECharacteristicValueChange", "offBLEConnectionStateChange", "offBLEMTUChange", "offBLEPeripheralConnectionStateChanged", "offBluetoothAdapterStateChange", "offBluetoothDeviceFound", "offCompassChange", "offCopyUrl", "offDeviceMotionChange", "offEmbeddedMiniProgramHeightChange", "offError", "offGeneratePoster", "offGetWifiList", "offGyroscopeChange", "offHCEMessage", "offKeyboardHeightChange", "offKeyDown", "offKeyUp", "offLazyLoadError", "offLocalServiceDiscoveryStop", "offLocalServiceFound", "offLocalServiceLost", "offLocalServiceResolveFail", "offLocationChange", "offLocationChangeError", "offMemoryWarning", "offMenuButtonBoundingClientRectWeightChange", "offNetworkStatusChange", "offNetworkWeakChange", "offPageNotFound", "offParallelStateChange", "offScreenRecordingStateChanged", "offThemeChange", "offUnhandledRejection", "offUserCaptureScreen", "offUserOffTranslation", "offUserTriggerTranslation", "offVoIPChatInterrupted", "offVoIPChatMembersChanged", "offVoIPChatSpeakersChanged", "offVoIPChatStateChanged", "offVoIPVideoMembersChanged", "offWifiConnected", "offWifiConnectedWithPartialInfo", "offWindowResize", "offWindowStateChange", "onAccelerometerChange", "onAfterPageLoad", "onAfterPageUnload", "onApiCategoryChange", "onAppHide", "onAppRoute", "onAppRouteDone", "onAppShow", "onAudioInterruptionBegin", "onAudioInterruptionEnd", "onBackgroundAudioPause", "onBackgroundAudioPlay", "onBackgroundAudioStop", "onBackgroundFetchData", "onBatteryInfoChange", "onBeaconServiceChange", "onBeaconUpdate", "onBeforeAppRoute", "onBeforePageLoad", "onBeforePageUnload", "onBLECharacteristicValueChange", "onBLEConnectionStateChange", "onBLEMTUChange", "onBLEPeripheralConnectionStateChanged", "onBluetoothAdapterStateChange", "onBluetoothDeviceFound", "onCompassChange", "onCopyUrl", "onDeviceMotionChange", "onEmbeddedMiniProgramHeightChange", "onError", "onGeneratePoster", "onGetWifiList", "onGyroscopeChange", "onHCEMessage", "onKeyboardHeightChange", "onKeyDown", "onKeyUp", "onLazyLoadError", "onLocalServiceDiscoveryStop", "onLocalServiceFound", "onLocalServiceLost", "onLocalServiceResolveFail", "onLocationChange", "onLocationChangeError", "onMemoryWarning", "onMenuButtonBoundingClientRectWeightChange", "onNeedPrivacyAuthorization", "onNetworkStatusChange", "onNetworkWeakChange", "onPageNotFound", "onParallelStateChange", "onScreenRecordingStateChanged", "onSocketClose", "onSocketError", "onSocketMessage", "onSocketOpen", "onThemeChange", "onUnhandledRejection", "onUserCaptureScreen", "onUserOffTranslation", "onUserTriggerTranslation", "onVoIPChatInterrupted", "onVoIPChatMembersChanged", "onVoIPChatSpeakersChanged", "onVoIPChatStateChanged", "onVoIPVideoMembersChanged", "onWifiConnected", "onWifiConnectedWithPartialInfo", "onWindowResize", "onWindowStateChange", "openAppAuthorizeSetting", "openBluetoothAdapter", "openCard", "openChannelsActivity", "openChannelsEvent", "openChannelsLive", "openChannelsLiveNoticeInfo", "openChannelsUserProfile", "openChatTool", "openCustomerServiceChat", "openDocument", "openEmbeddedMiniProgram", "openHKOfflinePayView", "openInquiriesTopic", "openLocation", "openOfficialAccountArticle", "openOfficialAccountChat", "openOfficialAccountProfile", "openPrivacyContract", "openSetting", "openSingleStickerView", "openStickerIPView", "openStickerSetView", "openStoreCouponDetail", "openStoreOrderDetail", "openSystemBluetoothSetting", "openVideoEditor", "pageScrollTo", "pauseBackgroundAudio", "pauseVoice", "playBackgroundAudio", "playVoice", "pluginLogin", "postMessageToReferrerMiniProgram", "postMessageToReferrerPage", "preDownloadSubpackage", "preloadAssets", "preloadSkylineView", "preloadWebview", "previewImage", "previewMedia", "readBLECharacteristicValue", "redirectTo", "reLaunch", "removeSecureElementPass", "removeStorage", "removeStorageSync", "removeTabBarBadge", "reportAnalytics", "reportEvent", "reportMonitor", "reportPerformance", "request", "requestCommonPayment", "requestDeviceVoIP", "requestFacialVerify", "requestIdleCallback", "requestMerchantTransfer", "requestOrderPayment", "requestPayment", "requestPluginPayment", "requestSubscribeDeviceMessage", "requestSubscribeEmployeeMessage", "requestSubscribeMessage", "requestVirtualPayment", "requirePrivacyAuthorize", "reserveChannelsLive", "restartMiniProgram", "revokeBufferURL", "rewriteRoute", "saveFileToDisk", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "seekBackgroundAudio", "selectGroupMembers", "sendHCEMessage", "sendSms", "sendSocketMessage", "setBackgroundColor", "setBackgroundFetchToken", "setBackgroundTextStyle", "setBLEMTU", "setClipboardData", "setEnable1v1Chat", "setEnableDebug", "setInnerAudioOption", "setKeepScreenOn", "setNavigationBarColor", "setNavigationBarTitle", "setScreenBrightness", "setStorage", "setStorageSync", "setTabBarBadge", "setTabBarItem", "setTabBarStyle", "setTopBarText", "setVisualEffectOnCapture", "setWifiList", "setWindowSize", "shareAppMessageToGroup", "shareEmojiToGroup", "shareFileMessage", "shareFileToGroup", "shareImageToGroup", "shareToOfficialAccount", "shareToWeRun", "shareVideoMessage", "shareVideoToGroup", "showActionSheet", "showLoading", "showModal", "showNavigationBarLoading", "showRedPackage", "showShareImageMenu", "showShareMenu", "showTabBar", "showTabBarRedDot", "showToast", "startAccelerometer", "startBeaconDiscovery", "startBluetoothDevicesDiscovery", "startCompass", "startDeviceMotionListening", "startGyroscope", "startHCE", "startLocalServiceDiscovery", "startLocationUpdate", "startLocationUpdateBackground", "startPullDownRefresh", "startRecord", "startSoterAuthentication", "startWifi", "stopAccelerometer", "stopBackgroundAudio", "stopBeaconDiscovery", "stopBluetoothDevicesDiscovery", "stopCompass", "stopDeviceMotionListening", "stopFaceDetect", "stopGyroscope", "stopHCE", "stopLocalServiceDiscovery", "stopLocationUpdate", "stopPullDownRefresh", "stopRecord", "stopVoice", "stopWifi", "subscribeVoIPVideoMembers", "switchTab", "updateShareMenu", "updateVoIPChatMuteConfig", "updateWeChatApp", "uploadFile", "vibrateLong", "vibrateShort", "writeBLECharacteristicValue"];
|
|
8375
8375
|
type WeapiMiniProgramMethodName = (typeof WEAPI_MINIPROGRAM_METHODS)[number];
|
|
8376
8376
|
type WeapiPlatformTypeSourceName = 'default' | 'wechat' | 'alipay' | 'douyin';
|
|
8377
8377
|
type WeapiRuntimeTypeSourceName = 'wx' | 'my' | 'tt';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,55 @@
|
|
|
1
1
|
import { getMiniProgramPlatformByRuntimeGlobalKey, getMiniProgramRuntimeGlobalKey, getMiniProgramRuntimeGlobalKeys, getMiniProgramRuntimeHostConfigKey, normalizeMiniProgramPlatform, resolveMiniProgramPlatform } from "@weapp-core/shared";
|
|
2
|
+
//#region src/core/runtimeGlobal.ts
|
|
3
|
+
/**
|
|
4
|
+
* @description 静态解析当前运行环境的全局根对象,兼容不提供 globalThis 的小程序 worker。
|
|
5
|
+
*/
|
|
6
|
+
function resolveRuntimeRoots() {
|
|
7
|
+
const roots = [];
|
|
8
|
+
const appendRoot = (root) => {
|
|
9
|
+
if (root && !roots.includes(root)) roots.push(root);
|
|
10
|
+
};
|
|
11
|
+
if (typeof globalThis !== "undefined") appendRoot(globalThis);
|
|
12
|
+
if (typeof self !== "undefined") appendRoot(self);
|
|
13
|
+
if (typeof window !== "undefined") appendRoot(window);
|
|
14
|
+
if (typeof global !== "undefined") appendRoot(global);
|
|
15
|
+
return roots;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @description 静态解析当前运行环境的首个全局根对象。
|
|
19
|
+
*/
|
|
20
|
+
function resolveRuntimeRoot() {
|
|
21
|
+
return resolveRuntimeRoots()[0];
|
|
22
|
+
}
|
|
23
|
+
function resolveTopLevelRuntimeValue(key) {
|
|
24
|
+
switch (key) {
|
|
25
|
+
case "wx": return typeof wx !== "undefined" ? wx : void 0;
|
|
26
|
+
case "my": return typeof my !== "undefined" ? my : void 0;
|
|
27
|
+
case "tt": return typeof tt !== "undefined" ? tt : void 0;
|
|
28
|
+
case "swan": return typeof swan !== "undefined" ? swan : void 0;
|
|
29
|
+
case "jd": return typeof jd !== "undefined" ? jd : void 0;
|
|
30
|
+
case "xhs": return typeof xhs !== "undefined" ? xhs : void 0;
|
|
31
|
+
case "qq": return typeof qq !== "undefined" ? qq : void 0;
|
|
32
|
+
case "ks": return typeof ks !== "undefined" ? ks : void 0;
|
|
33
|
+
case "dd": return typeof dd !== "undefined" ? dd : void 0;
|
|
34
|
+
case "qa": return typeof qa !== "undefined" ? qa : void 0;
|
|
35
|
+
case "qapp": return typeof qapp !== "undefined" ? qapp : void 0;
|
|
36
|
+
case "uni": return typeof uni !== "undefined" ? uni : void 0;
|
|
37
|
+
case "__wxConfig": return typeof __wxConfig !== "undefined" ? __wxConfig : void 0;
|
|
38
|
+
default: return;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @description 从全局根对象或小程序顶层全局变量读取运行时值。
|
|
43
|
+
*/
|
|
44
|
+
function resolveRuntimeGlobalValue(key, root = resolveRuntimeRoot()) {
|
|
45
|
+
const roots = root ? [root, ...resolveRuntimeRoots().filter((item) => item !== root)] : resolveRuntimeRoots();
|
|
46
|
+
for (const item of roots) {
|
|
47
|
+
const value = item[key];
|
|
48
|
+
if (value !== void 0) return value;
|
|
49
|
+
}
|
|
50
|
+
return resolveTopLevelRuntimeValue(key);
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
2
53
|
//#region src/core/adapter.ts
|
|
3
54
|
const GLOBAL_ADAPTER_KEYS = [
|
|
4
55
|
...getMiniProgramRuntimeGlobalKeys().map((key) => ({
|
|
@@ -30,10 +81,6 @@ const GLOBAL_ADAPTER_KEYS = [
|
|
|
30
81
|
key: "uni"
|
|
31
82
|
}
|
|
32
83
|
];
|
|
33
|
-
function resolveGlobalThis() {
|
|
34
|
-
if (typeof globalThis !== "undefined") return globalThis;
|
|
35
|
-
if (typeof window !== "undefined") return window;
|
|
36
|
-
}
|
|
37
84
|
function isAdapterCandidate(value) {
|
|
38
85
|
return typeof value === "object" || typeof value === "function";
|
|
39
86
|
}
|
|
@@ -41,10 +88,9 @@ function isAdapterCandidate(value) {
|
|
|
41
88
|
* @description 侦测当前运行环境的全局 API 对象
|
|
42
89
|
*/
|
|
43
90
|
function detectGlobalAdapter() {
|
|
44
|
-
const root =
|
|
45
|
-
if (!root) return {};
|
|
91
|
+
const root = resolveRuntimeRoot();
|
|
46
92
|
for (const item of GLOBAL_ADAPTER_KEYS) {
|
|
47
|
-
const candidate =
|
|
93
|
+
const candidate = resolveRuntimeGlobalValue(item.key, root);
|
|
48
94
|
if (isAdapterCandidate(candidate)) return {
|
|
49
95
|
adapter: candidate,
|
|
50
96
|
platform: item.platform
|
|
@@ -727,11 +773,11 @@ const WEAPI_TT_METHODS = [...WEAPI_TT_METHODS_APPLY_EC_COUPON_TO_UNSUBSCRIBE_ALL
|
|
|
727
773
|
const WEAPI_TYPE_SOURCES = {
|
|
728
774
|
default: {
|
|
729
775
|
package: "miniprogram-api-typings",
|
|
730
|
-
version: "5.
|
|
776
|
+
version: "5.2.0"
|
|
731
777
|
},
|
|
732
778
|
wechat: {
|
|
733
779
|
package: "miniprogram-api-typings",
|
|
734
|
-
version: "5.
|
|
780
|
+
version: "5.2.0"
|
|
735
781
|
},
|
|
736
782
|
alipay: {
|
|
737
783
|
package: "@mini-types/alipay",
|
|
@@ -743,7 +789,7 @@ const WEAPI_TYPE_SOURCES = {
|
|
|
743
789
|
},
|
|
744
790
|
wx: {
|
|
745
791
|
package: "miniprogram-api-typings",
|
|
746
|
-
version: "5.
|
|
792
|
+
version: "5.2.0"
|
|
747
793
|
},
|
|
748
794
|
my: {
|
|
749
795
|
package: "@mini-types/alipay",
|
|
@@ -766,12 +812,12 @@ const WEAPI_RUNTIME_TYPE_SOURCES = {
|
|
|
766
812
|
tt: WEAPI_TYPE_SOURCES.tt
|
|
767
813
|
};
|
|
768
814
|
//#endregion
|
|
769
|
-
//#region src/core/apiCatalog/
|
|
815
|
+
//#region src/core/apiCatalog/wxMethodsAddCardToIsVKSupport.ts
|
|
770
816
|
/**
|
|
771
817
|
* @description 三端 API 名单(由 typings 自动提取,请勿手工修改)
|
|
772
818
|
* @generated by scripts/sync-api-catalog.mjs
|
|
773
819
|
*/
|
|
774
|
-
const
|
|
820
|
+
const WEAPI_WX_METHODS_ADD_CARD_TO_IS_VKSUPPORT = [
|
|
775
821
|
"addCard",
|
|
776
822
|
"addFileToFavorites",
|
|
777
823
|
"addPaymentPassFinish",
|
|
@@ -802,6 +848,7 @@ const WEAPI_WX_METHODS_ADD_CARD_TO_JOIN_VO_IPCHAT = [
|
|
|
802
848
|
"checkIsOpenAccessibility",
|
|
803
849
|
"checkIsPictureInPictureActive",
|
|
804
850
|
"checkIsSoterEnrolledInDevice",
|
|
851
|
+
"checkIsSupportFacialRecognition",
|
|
805
852
|
"checkIsSupportSoterAuthentication",
|
|
806
853
|
"checkSession",
|
|
807
854
|
"chooseAddress",
|
|
@@ -858,6 +905,7 @@ const WEAPI_WX_METHODS_ADD_CARD_TO_JOIN_VO_IPCHAT = [
|
|
|
858
905
|
"downloadFile",
|
|
859
906
|
"editImage",
|
|
860
907
|
"enableAlertBeforeUnload",
|
|
908
|
+
"enterChatToolMode",
|
|
861
909
|
"exitMiniProgram",
|
|
862
910
|
"exitVoIPChat",
|
|
863
911
|
"faceDetect",
|
|
@@ -949,17 +997,17 @@ const WEAPI_WX_METHODS_ADD_CARD_TO_JOIN_VO_IPCHAT = [
|
|
|
949
997
|
"hideToast",
|
|
950
998
|
"initFaceDetect",
|
|
951
999
|
"isBluetoothDevicePaired",
|
|
952
|
-
"isVKSupport"
|
|
953
|
-
"join1v1Chat",
|
|
954
|
-
"joinVoIPChat"
|
|
1000
|
+
"isVKSupport"
|
|
955
1001
|
];
|
|
956
1002
|
//#endregion
|
|
957
|
-
//#region src/core/apiCatalog/
|
|
1003
|
+
//#region src/core/apiCatalog/wxMethodsJoin1v1ChatToPluginLogin.ts
|
|
958
1004
|
/**
|
|
959
1005
|
* @description 三端 API 名单(由 typings 自动提取,请勿手工修改)
|
|
960
1006
|
* @generated by scripts/sync-api-catalog.mjs
|
|
961
1007
|
*/
|
|
962
|
-
const
|
|
1008
|
+
const WEAPI_WX_METHODS_JOIN1V1_CHAT_TO_PLUGIN_LOGIN = [
|
|
1009
|
+
"join1v1Chat",
|
|
1010
|
+
"joinVoIPChat",
|
|
963
1011
|
"loadBuiltInFontFace",
|
|
964
1012
|
"loadFontFace",
|
|
965
1013
|
"login",
|
|
@@ -1137,17 +1185,17 @@ const WEAPI_WX_METHODS_LOAD_BUILT_IN_FONT_FACE_TO_POST_MESSAGE_TO_REFERRER_PAGE
|
|
|
1137
1185
|
"pauseVoice",
|
|
1138
1186
|
"playBackgroundAudio",
|
|
1139
1187
|
"playVoice",
|
|
1140
|
-
"pluginLogin"
|
|
1141
|
-
"postMessageToReferrerMiniProgram",
|
|
1142
|
-
"postMessageToReferrerPage"
|
|
1188
|
+
"pluginLogin"
|
|
1143
1189
|
];
|
|
1144
1190
|
//#endregion
|
|
1145
|
-
//#region src/core/apiCatalog/
|
|
1191
|
+
//#region src/core/apiCatalog/wxMethodsPostMessageToReferrerMiniProgramToWriteBLECharacteristicValue.ts
|
|
1146
1192
|
/**
|
|
1147
1193
|
* @description 三端 API 名单(由 typings 自动提取,请勿手工修改)
|
|
1148
1194
|
* @generated by scripts/sync-api-catalog.mjs
|
|
1149
1195
|
*/
|
|
1150
|
-
const
|
|
1196
|
+
const WEAPI_WX_METHODS_POST_MESSAGE_TO_REFERRER_MINI_PROGRAM_TO_WRITE_BLECHARACTERISTIC_VALUE = [
|
|
1197
|
+
"postMessageToReferrerMiniProgram",
|
|
1198
|
+
"postMessageToReferrerPage",
|
|
1151
1199
|
"preDownloadSubpackage",
|
|
1152
1200
|
"preloadAssets",
|
|
1153
1201
|
"preloadSkylineView",
|
|
@@ -1168,6 +1216,7 @@ const WEAPI_WX_METHODS_PRE_DOWNLOAD_SUBPACKAGE_TO_WRITE_BLECHARACTERISTIC_VALUE
|
|
|
1168
1216
|
"request",
|
|
1169
1217
|
"requestCommonPayment",
|
|
1170
1218
|
"requestDeviceVoIP",
|
|
1219
|
+
"requestFacialVerify",
|
|
1171
1220
|
"requestIdleCallback",
|
|
1172
1221
|
"requestMerchantTransfer",
|
|
1173
1222
|
"requestOrderPayment",
|
|
@@ -1273,9 +1322,9 @@ const WEAPI_WX_METHODS_PRE_DOWNLOAD_SUBPACKAGE_TO_WRITE_BLECHARACTERISTIC_VALUE
|
|
|
1273
1322
|
//#endregion
|
|
1274
1323
|
//#region src/core/apiCatalog/index.ts
|
|
1275
1324
|
const WEAPI_WECHAT_METHODS = [
|
|
1276
|
-
...
|
|
1277
|
-
...
|
|
1278
|
-
...
|
|
1325
|
+
...WEAPI_WX_METHODS_ADD_CARD_TO_IS_VKSUPPORT,
|
|
1326
|
+
...WEAPI_WX_METHODS_JOIN1V1_CHAT_TO_PLUGIN_LOGIN,
|
|
1327
|
+
...WEAPI_WX_METHODS_POST_MESSAGE_TO_REFERRER_MINI_PROGRAM_TO_WRITE_BLECHARACTERISTIC_VALUE
|
|
1279
1328
|
];
|
|
1280
1329
|
const WEAPI_ALIPAY_METHODS = WEAPI_MY_METHODS;
|
|
1281
1330
|
const WEAPI_DOUYIN_METHODS = WEAPI_TT_METHODS;
|
|
@@ -2197,13 +2246,13 @@ function resolveQueueSize(value) {
|
|
|
2197
2246
|
return Math.max(1, Math.floor(value));
|
|
2198
2247
|
}
|
|
2199
2248
|
function resolveCurrentMiniProgramHostConfig() {
|
|
2200
|
-
const runtimeRoot =
|
|
2249
|
+
const runtimeRoot = resolveRuntimeRoot();
|
|
2201
2250
|
for (const globalKey of getMiniProgramRuntimeGlobalKeys()) {
|
|
2202
|
-
if (!runtimeRoot
|
|
2203
|
-
const hostConfig =
|
|
2251
|
+
if (!resolveRuntimeGlobalValue(globalKey, runtimeRoot)) continue;
|
|
2252
|
+
const hostConfig = resolveRuntimeGlobalValue(getMiniProgramRuntimeHostConfigKey(getMiniProgramPlatformByRuntimeGlobalKey(globalKey)), runtimeRoot);
|
|
2204
2253
|
return isPlainObject(hostConfig) ? hostConfig : void 0;
|
|
2205
2254
|
}
|
|
2206
|
-
const defaultHostConfig =
|
|
2255
|
+
const defaultHostConfig = resolveRuntimeGlobalValue(getMiniProgramRuntimeHostConfigKey(void 0), runtimeRoot);
|
|
2207
2256
|
return isPlainObject(defaultHostConfig) ? defaultHostConfig : void 0;
|
|
2208
2257
|
}
|
|
2209
2258
|
function resolveHostTimeoutConfig() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wevu/api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.7",
|
|
5
5
|
"description": "tsdown bundler template",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@douyin-microapp/typings": "^1.3.1",
|
|
36
36
|
"@mini-types/alipay": "^3.0.14",
|
|
37
|
-
"miniprogram-api-typings": "^5.
|
|
37
|
+
"miniprogram-api-typings": "^5.2.0",
|
|
38
38
|
"@weapp-core/shared": "3.0.4"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|