zmp-sdk 2.30.2 → 2.30.3

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.
@@ -1 +1 @@
1
- import t from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import o,{object as e}from'./../external/zod/lib/index.mjs.js';import r from"../appEnv/index.js";import n from"../common/notFound.js";import{functionHandler as s}from"../utils/decorator.js";import i from"../common/apis/general/view.js";import{__generator as a}from'./../external/tslib/tslib.es6.js';var m=[e({type:o.enum(["none","back","home","both"])}).optional()];function u(t){return p.apply(this,arguments)}function p(){return p=t((function(o){return a(this,(function(e){return[2,s("setNavigationBarLeftButton",m,[o],(u=t((function(t){return a(this,(function(o){switch(o.label){case 0:return r.isMp?[4,i.setNavigationBarLeftButton(t.type,0)]:[3,2];case 1:return[2,o.sent()];case 2:return r.isMpWeb?[2,Promise.resolve()]:[2,Promise.reject(n("setNavigationBarLeftButton",{}))]}}))})),function(t){return u.apply(this,arguments)}))];var u}))})),p.apply(this,arguments)}export{u as setNavigationBarLeftButton};
1
+ import t from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import o,{object as e}from'./../external/zod/lib/index.mjs.js';import r from"../appEnv/index.js";import n from"../common/notFound.js";import{functionHandler as s}from"../utils/decorator.js";import i from"../common/apis/general/view.js";import{__generator as a}from'./../external/tslib/tslib.es6.js';var m=[e({type:o.enum(["none","back","home","both"])}).optional()];function u(t){return p.apply(this,arguments)}function p(){return p=t((function(o){return a(this,(function(e){return[2,s("setNavigationBarLeftButton",m,[o],(u=t((function(t){return a(this,(function(o){switch(o.label){case 0:return r.isMp?[4,i.setNavigationBarLeftButton(t.type)]:[3,2];case 1:return[2,o.sent()];case 2:return r.isMpWeb?[2,Promise.resolve()]:[2,Promise.reject(n("setNavigationBarLeftButton",{}))]}}))})),function(t){return u.apply(this,arguments)}))];var u}))})),p.apply(this,arguments)}export{u as setNavigationBarLeftButton};
package/apis/index.es.js CHANGED
@@ -1 +1 @@
1
- import e from'./external/@swc/helpers/src/_object_without_properties.mjs.js';import*as o from"./apis/index.js";import r from"./appEnv/getEnv.js";import{login as t}from"./apis/login.js";export{login}from"./apis/login.js";import{createOrder as s}from"./apis/createOrder.js";export{createOrder}from"./apis/createOrder.js";import{checkTransaction as p}from"./apis/checkTransaction.js";export{checkTransaction}from"./apis/checkTransaction.js";import{createOrderIAP as a}from"./apis/createOrderIAP.js";export{createOrderIAP}from"./apis/createOrderIAP.js";export{getAccessToken}from"./apis/getAccessToken.js";export{getVersion}from"./apis/getVersion.js";export{getSystemInfo}from"./apis/getSystemInfo.js";export{setNavigationBarTitle}from"./apis/setNavigationBarTitle.js";export{setNavigationBarColor}from"./apis/setNavigationBarColor.js";export{setNavigationBarLeftButton}from"./apis/setNavigationBarLeftButton.js";export{setStorage}from"./apis/setStorage.js";export{getStorage}from"./apis/getStorage.js";export{getStorageInfo}from"./apis/getStorageInfo.js";export{removeStorage}from"./apis/removeStorage.js";export{clearStorage}from"./apis/clearStorage.js";export{getUserInfo}from"./apis/getUserInfo.js";export{getNetworkType}from"./apis/getNetworkType.js";export{onNetworkStatusChange}from"./apis/onNetworkStatusChange.js";export{startBeaconDiscovery}from"./apis/startBeaconDiscovery.js";export{stopBeaconDiscovery}from"./apis/stopBeaconDiscovery.js";export{getBeacons}from"./apis/getBeacons.js";export{closeApp}from"./apis/closeApp.js";export{scanQRCode}from"./apis/scanQRCode.js";export{openProfile}from"./apis/openProfile.js";export{openChat}from"./apis/openChat.js";export{openPostFeed}from"./apis/openPostFeed.js";export{followOA}from"./apis/followOA.js";export{unfollowOA}from"./apis/unfollowOA.js";export{openShareSheet}from"./apis/openShareSheet.js";export{requestCameraPermission}from"./apis/requestCameraPermission.js";export{createShortcut}from"./apis/createShortcut.js";export{openBioAuthentication}from"./apis/openBioAuthentication.js";export{checkStateBioAuthentication}from"./apis/checkStateBioAuthentication.js";export{showToast}from"./apis/showToast.js";export{hideKeyboard}from"./apis/hideKeyboard.js";export{openPhone}from"./apis/openPhone.js";export{openSMS}from"./apis/openSMS.js";export{viewOAQr}from"./apis/viewOAQr.js";export{keepScreen}from"./apis/keepScreen.js";export{onKeepScreen}from"./apis/onKeepScreen.js";export{offKeepScreen}from"./apis/offKeepScreen.js";export{saveImageToGallery}from"./apis/saveImageToGallery.js";export{openMiniApp}from"./apis/openMiniApp.js";export{vibrate}from"./apis/vibrate.js";export{openWebview}from"./apis/openWebview.js";export{getRouteParams}from"./apis/getRouteParams.js";export{getAppInfo}from"./apis/getAppInfo.js";export{sendDataToPreviousMiniApp}from"./apis/sendDataToPreviousMiniApp.js";export{getPhoneNumber}from"./apis/getPhoneNumber.js";export{openProfilePicker}from"./apis/openProfilePicker.js";export{connectWifi}from"./apis/connectWifi.js";export{openMediaPicker}from"./apis/openMediaPicker.js";export{getShareableLink}from"./apis/getShareableLink.js";export{closeLoading}from"./apis/closeLoading.js";export{requestUpdateZalo}from"./apis/requestUpdateZalo.js";export{onConfirmToExit}from"./apis/onConfirmToExit.js";export{offConfirmToExit}from"./apis/offConfirmToExit.js";export{getDeviceId}from"./apis/getDeviceId.js";export{getDeviceIdAsync}from"./apis/getDeviceIdAsync.js";export{getContext}from"./apis/getContext.js";export{getContextAsync}from"./apis/getContextAsync.js";export{getAuthCode}from"./apis/getAuthCode.js";export{getZPIToken}from"./apis/getZPIToken.js";export{setAccessToken}from"./apis/setAccessToken.js";export{openOutApp}from"./apis/openOutApp.js";export{chooseImage}from"./apis/chooseImage.js";export{getLocation}from"./apis/getLocation.js";export{onCallbackData}from"./apis/onCallbackData.js";export{events}from"./apis/events.js";export{setAndroidBottomNavigationBar}from"./apis/setAndroidBottomNavigationBar.js";export{setIOSBottomSafeArea}from"./apis/setIOSBottomSafeArea.js";export{setStatusBar}from"./apis/setStatusBar.js";export{configAppView}from"./apis/configAppView.js";export{minimizeApp}from"./apis/minimizeApp.js";export{openPermissionSetting}from"./apis/openPermissionSetting.js";export{favoriteApp}from"./apis/favoriteApp.js";export{openGroupList}from"./apis/openGroupList.js";export{requestSendNotification}from"./apis/requestSendNotification.js";export{addRating}from"./apis/addRating.js";export{interactOA,interactOA as interactOa}from"./apis/interactOA.js";export{checkIsAllowedInteractWithOA as isAllowedInteractWithOA}from"./apis/checkIsAllowedInteractWithOA.js";export{AndroidBottomNavigationBarType,ChatType,Events,IAPPayType,IOSSafeAreaBottomType,JumpStatus,MediaPickerType,NetworkType,OrientationType,PlatformType,PostFeedType,ProfileType,ProrationMode,ShareSheetType,StatusBarType,TextAlignType,VibrateType}from"./types/enum.js";var i,n,m=s,f=p,c=a,x=e(o,["createOrder","checkTransaction","createOrderIAP"]),j={createOrder:m,checkTransaction:f,createOrderIAP:c};(null==(n=null===(i=r())||void 0===i?void 0:i.appEnv)?void 0:n.isMp)&&(window.ZaloMiniAppSDK={},Object.assign(window.ZaloMiniAppSDK,o)),t();export{j as Payment,x as default};
1
+ import e from'./external/@swc/helpers/src/_object_without_properties.mjs.js';import*as o from"./index.js";import t from"./appEnv/getEnv.js";import{createOrder as r}from"./apis/createOrder.js";export{createOrder}from"./apis/createOrder.js";import{checkTransaction as s}from"./apis/checkTransaction.js";export{checkTransaction}from"./apis/checkTransaction.js";import{createOrderIAP as a}from"./apis/createOrderIAP.js";export{createOrderIAP}from"./apis/createOrderIAP.js";export{AndroidBottomNavigationBarType,ChatType,Events as EventName,Events,IAPPayType,IOSSafeAreaBottomType,JumpStatus,MediaPickerType,NetworkType,OrientationType,PlatformType,PostFeedType,ProfileType,ProrationMode,ShareSheetType,StatusBarType,TextAlignType,VibrateType}from"./types/enum.js";export{login}from"./apis/login.js";export{getAccessToken}from"./apis/getAccessToken.js";export{getVersion}from"./apis/getVersion.js";export{getSystemInfo}from"./apis/getSystemInfo.js";export{setNavigationBarTitle}from"./apis/setNavigationBarTitle.js";export{setNavigationBarColor}from"./apis/setNavigationBarColor.js";export{setNavigationBarLeftButton}from"./apis/setNavigationBarLeftButton.js";export{setStorage}from"./apis/setStorage.js";export{getStorage}from"./apis/getStorage.js";export{getStorageInfo}from"./apis/getStorageInfo.js";export{removeStorage}from"./apis/removeStorage.js";export{clearStorage}from"./apis/clearStorage.js";export{getUserInfo}from"./apis/getUserInfo.js";export{getNetworkType}from"./apis/getNetworkType.js";export{onNetworkStatusChange}from"./apis/onNetworkStatusChange.js";export{startBeaconDiscovery}from"./apis/startBeaconDiscovery.js";export{stopBeaconDiscovery}from"./apis/stopBeaconDiscovery.js";export{getBeacons}from"./apis/getBeacons.js";export{closeApp}from"./apis/closeApp.js";export{scanQRCode}from"./apis/scanQRCode.js";export{openProfile}from"./apis/openProfile.js";export{openChat}from"./apis/openChat.js";export{openPostFeed}from"./apis/openPostFeed.js";export{followOA}from"./apis/followOA.js";export{unfollowOA}from"./apis/unfollowOA.js";export{openShareSheet}from"./apis/openShareSheet.js";export{requestCameraPermission}from"./apis/requestCameraPermission.js";export{createShortcut}from"./apis/createShortcut.js";export{openBioAuthentication}from"./apis/openBioAuthentication.js";export{checkStateBioAuthentication}from"./apis/checkStateBioAuthentication.js";export{showToast}from"./apis/showToast.js";export{hideKeyboard}from"./apis/hideKeyboard.js";export{openPhone}from"./apis/openPhone.js";export{openSMS}from"./apis/openSMS.js";export{viewOAQr}from"./apis/viewOAQr.js";export{keepScreen}from"./apis/keepScreen.js";export{onKeepScreen}from"./apis/onKeepScreen.js";export{offKeepScreen}from"./apis/offKeepScreen.js";export{saveImageToGallery}from"./apis/saveImageToGallery.js";export{openMiniApp}from"./apis/openMiniApp.js";export{vibrate}from"./apis/vibrate.js";export{openWebview}from"./apis/openWebview.js";export{getRouteParams}from"./apis/getRouteParams.js";export{getAppInfo}from"./apis/getAppInfo.js";export{sendDataToPreviousMiniApp}from"./apis/sendDataToPreviousMiniApp.js";export{getPhoneNumber}from"./apis/getPhoneNumber.js";export{openProfilePicker}from"./apis/openProfilePicker.js";export{connectWifi}from"./apis/connectWifi.js";export{openMediaPicker}from"./apis/openMediaPicker.js";export{getShareableLink}from"./apis/getShareableLink.js";export{closeLoading}from"./apis/closeLoading.js";export{requestUpdateZalo}from"./apis/requestUpdateZalo.js";export{onConfirmToExit}from"./apis/onConfirmToExit.js";export{offConfirmToExit}from"./apis/offConfirmToExit.js";export{getDeviceId}from"./apis/getDeviceId.js";export{getDeviceIdAsync}from"./apis/getDeviceIdAsync.js";export{getContext}from"./apis/getContext.js";export{getContextAsync}from"./apis/getContextAsync.js";export{getAuthCode}from"./apis/getAuthCode.js";export{getZPIToken}from"./apis/getZPIToken.js";export{setAccessToken}from"./apis/setAccessToken.js";export{openOutApp}from"./apis/openOutApp.js";export{chooseImage}from"./apis/chooseImage.js";export{getLocation}from"./apis/getLocation.js";export{onCallbackData}from"./apis/onCallbackData.js";export{events}from"./apis/events.js";export{setAndroidBottomNavigationBar}from"./apis/setAndroidBottomNavigationBar.js";export{setIOSBottomSafeArea}from"./apis/setIOSBottomSafeArea.js";export{setStatusBar}from"./apis/setStatusBar.js";export{configAppView}from"./apis/configAppView.js";export{minimizeApp}from"./apis/minimizeApp.js";export{openPermissionSetting}from"./apis/openPermissionSetting.js";export{favoriteApp}from"./apis/favoriteApp.js";export{openGroupList}from"./apis/openGroupList.js";export{requestSendNotification}from"./apis/requestSendNotification.js";export{addRating}from"./apis/addRating.js";export{interactOA,interactOA as interactOa}from"./apis/interactOA.js";export{checkIsAllowedInteractWithOA as isAllowedInteractWithOA}from"./apis/checkIsAllowedInteractWithOA.js";var p,i,n=r,m=s,f=a,c=e(o,["createOrder","checkTransaction","createOrderIAP"]),x={createOrder:n,checkTransaction:m,createOrderIAP:f};(null==(i=null===(p=t())||void 0===p?void 0:p.appEnv)?void 0:i.isMp)&&(window.ZaloMiniAppSDK={},Object.assign(window.ZaloMiniAppSDK,o));export{x as Payment,c as default};
@@ -1 +1 @@
1
- var r="2.30.2";export{r as version};
1
+ var r="2.30.3";export{r as version};