zmp-sdk 2.35.2 → 2.35.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.
- package/apis/package.json.js +1 -1
- package/browser.min.js +2 -2
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +2 -2
- package/package.json +1 -1
- package/apis/apis/checkCameraPermission.js +0 -1
- package/apis/apis/downloadFile.js +0 -1
- package/apis/apis/fetchFile.js +0 -1
- package/apis/apis/getFileInfo.js +0 -1
- package/apis/apis/getSavedFileList.js +0 -1
- package/apis/apis/index.js +0 -1
- package/apis/apis/removeSavedFile.js +0 -1
- package/apis/apis/saveFile.js +0 -1
- package/apis/common/apis/general/checkCameraPermission.js +0 -1
- package/apis/common/apis/general/fetchFile.js +0 -1
- package/apis/common/apis/general/getFileInfo.js +0 -1
- package/apis/common/apis/general/getSavedFileList.js +0 -1
- package/apis/common/apis/general/lfsSaveFile.js +0 -1
- package/apis/common/apis/general/removeSavedFile.js +0 -1
- package/apis/common/apis/general/saveFile.js +0 -1
- package/zmp-sdk-v2.35.0-beta.1.tgz +0 -0
- package/zmp-sdk-v2.35.0-beta.2.tgz +0 -0
- /package/apis/apis/{interactOa.js → interactOA.js} +0 -0
- /package/apis/common/apis/general/{interactOa.js → interactOA.js} +0 -0
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import{functionHandler as r}from"../utils/decorator.js";import o from"../common/apis/general/checkCameraPermission.js";import{__generator as s}from'./../external/tslib/tslib.es6.js';function t(t){return r("checkCameraPermission",[],[t],e((function(){return s(this,(function(e){switch(e.label){case 0:return console.log("DUNGNN 1"),[4,o()];case 1:return[2,e.sent()]}}))})))}export{t as checkCameraPermission};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import o,{object as e}from'./../external/zod/lib/index.mjs.js';import t from"../appEnv/index.js";import n from"../common/notFound.js";import{functionHandler as s}from"../utils/decorator.js";import i from"../common/apis/general/saveFile.js";import{__generator as m}from'./../external/tslib/tslib.es6.js';var u=[e({url:o.string()}).optional()];function l(r){return a.apply(this,arguments)}function a(){return a=r((function(o){return m(this,(function(e){return[2,s("downloadFile",u,[o],(l=r((function(r){var o;return m(this,(function(e){switch(e.label){case 0:return t.isMp?(o=r.url,[4,i(o)]):[3,2];case 1:return[2,e.sent()];case 2:return t.isMpWeb?[2,Promise.resolve()]:[2,Promise.reject(n("saveFile",{}))]}}))})),function(r){return l.apply(this,arguments)}))];var l}))})),a.apply(this,arguments)}export{l as downloadFile};
|
package/apis/apis/fetchFile.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import r from"../appEnv/index.js";import t from"../common/notFound.js";import{functionHandler as o}from"../utils/decorator.js";import n from"../common/apis/general/fetchFile.js";import{__generator as s}from'./../external/tslib/tslib.es6.js';function i(e){return m.apply(this,arguments)}function m(){return m=e((function(i){return s(this,(function(m){return[2,o("fetchFile",[],[i],(c=e((function(e){return s(this,(function(e){switch(e.label){case 0:return r.isMp?[4,n()]:[3,2];case 1:return[2,e.sent()];case 2:return r.isMpWeb?[2,Promise.resolve({size:"",digest:"",type:""})]:[2,Promise.reject(t("getFileInfo",{}))]}}))})),function(e){return c.apply(this,arguments)}))];var c}))})),m.apply(this,arguments)}export{i as fetchFile};
|
package/apis/apis/getFileInfo.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t,{object as o}from'./../external/zod/lib/index.mjs.js';import r from"../appEnv/index.js";import i from"../common/notFound.js";import{functionHandler as n}from"../utils/decorator.js";import s from"../common/apis/general/getFileInfo.js";import{__generator as m}from'./../external/tslib/tslib.es6.js';var l=[o({filePath:t.string(),digestAlgorithm:t.enum(["sha1","md5"])}).optional()];function p(e){return u.apply(this,arguments)}function u(){return u=e((function(t){return m(this,(function(o){return[2,n("getFileInfo",l,[t],(p=e((function(e){return m(this,(function(t){switch(t.label){case 0:return r.isMp?[4,s(e.filePath,e.digestAlgorithm)]:[3,2];case 1:return[2,t.sent()];case 2:return r.isMpWeb?[2,Promise.resolve({size:"",digest:"",type:""})]:[2,Promise.reject(i("getFileInfo",{}))]}}))})),function(e){return p.apply(this,arguments)}))];var p}))})),u.apply(this,arguments)}export{p as getFileInfo};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t from"../appEnv/index.js";import r from"../common/notFound.js";import{functionHandler as o}from"../utils/decorator.js";import s from"../common/apis/general/getSavedFileList.js";import{__generator as i}from'./../external/tslib/tslib.es6.js';function n(e){return m.apply(this,arguments)}function m(){return m=e((function(n){return i(this,(function(m){return[2,o("getSavedFileList",[],[n],(u=e((function(e){return i(this,(function(e){switch(e.label){case 0:return t.isMp?(console.log("DUNGNN getSavedFileList 11"),[4,s()]):[3,2];case 1:return[2,e.sent()];case 2:return t.isMpWeb?[2,Promise.resolve()]:[2,Promise.reject(r("getSavedFileList",{}))]}}))})),function(e){return u.apply(this,arguments)}))];var u}))})),m.apply(this,arguments)}export{n as getSavedFileList};
|
package/apis/apis/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{login}from"./login.js";export{getAccessToken}from"./getAccessToken.js";export{getVersion}from"./getVersion.js";export{getSystemInfo}from"./getSystemInfo.js";export{setNavigationBarTitle}from"./setNavigationBarTitle.js";export{setNavigationBarColor}from"./setNavigationBarColor.js";export{setNavigationBarLeftButton}from"./setNavigationBarLeftButton.js";export{setStorage}from"./setStorage.js";export{getStorage}from"./getStorage.js";export{getStorageInfo}from"./getStorageInfo.js";export{removeStorage}from"./removeStorage.js";export{clearStorage}from"./clearStorage.js";export{getUserInfo}from"./getUserInfo.js";export{getNetworkType}from"./getNetworkType.js";export{onNetworkStatusChange}from"./onNetworkStatusChange.js";export{startBeaconDiscovery}from"./startBeaconDiscovery.js";export{stopBeaconDiscovery}from"./stopBeaconDiscovery.js";export{getBeacons}from"./getBeacons.js";export{closeApp}from"./closeApp.js";export{scanQRCode}from"./scanQRCode.js";export{openProfile}from"./openProfile.js";export{openChat}from"./openChat.js";export{openPostFeed}from"./openPostFeed.js";export{followOA}from"./followOA.js";export{unfollowOA}from"./unfollowOA.js";export{openShareSheet}from"./openShareSheet.js";export{requestCameraPermission}from"./requestCameraPermission.js";export{createShortcut}from"./createShortcut.js";export{openBioAuthentication}from"./openBioAuthentication.js";export{checkStateBioAuthentication}from"./checkStateBioAuthentication.js";export{showToast}from"./showToast.js";export{hideKeyboard}from"./hideKeyboard.js";export{openPhone}from"./openPhone.js";export{openSMS}from"./openSMS.js";export{viewOAQr}from"./viewOAQr.js";export{keepScreen}from"./keepScreen.js";export{onKeepScreen}from"./onKeepScreen.js";export{offKeepScreen}from"./offKeepScreen.js";export{saveImageToGallery}from"./saveImageToGallery.js";export{openMiniApp}from"./openMiniApp.js";export{vibrate}from"./vibrate.js";export{openWebview}from"./openWebview.js";export{getRouteParams}from"./getRouteParams.js";export{getAppInfo}from"./getAppInfo.js";export{sendDataToPreviousMiniApp}from"./sendDataToPreviousMiniApp.js";export{getPhoneNumber}from"./getPhoneNumber.js";export{openProfilePicker}from"./openProfilePicker.js";export{connectWifi}from"./connectWifi.js";export{openMediaPicker}from"./openMediaPicker.js";export{getShareableLink}from"./getShareableLink.js";export{closeLoading}from"./closeLoading.js";export{requestUpdateZalo}from"./requestUpdateZalo.js";export{onConfirmToExit}from"./onConfirmToExit.js";export{offConfirmToExit}from"./offConfirmToExit.js";export{getDeviceId}from"./getDeviceId.js";export{getDeviceIdAsync}from"./getDeviceIdAsync.js";export{getContext}from"./getContext.js";export{getContextAsync}from"./getContextAsync.js";export{getAuthCode}from"./getAuthCode.js";export{getZPIToken}from"./getZPIToken.js";export{setAccessToken}from"./setAccessToken.js";export{openOutApp}from"./openOutApp.js";export{chooseImage}from"./chooseImage.js";export{getLocation}from"./getLocation.js";export{onCallbackData}from"./onCallbackData.js";export{createOrder}from"./createOrder.js";export{checkTransaction}from"./checkTransaction.js";export{events}from"./events.js";export{setAndroidBottomNavigationBar}from"./setAndroidBottomNavigationBar.js";export{setIOSBottomSafeArea}from"./setIOSBottomSafeArea.js";export{setStatusBar}from"./setStatusBar.js";export{configAppView}from"./configAppView.js";export{createOrderIAP}from"./createOrderIAP.js";export{minimizeApp}from"./minimizeApp.js";export{openPermissionSetting}from"./openPermissionSetting.js";export{favoriteApp}from"./favoriteApp.js";export{openGroupList}from"./openGroupList.js";export{requestSendNotification}from"./requestSendNotification.js";export{addRating}from"./addRating.js";export{interactOA,interactOA as interactOa}from"./interactOA.js";export{checkIsAllowedInteractWithOA as isAllowedInteractWithOA}from"./checkIsAllowedInteractWithOA.js";export{getSetting}from"./getSetting.js";export{authorize}from"./authorize.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import r,{object as o}from'./../external/zod/lib/index.mjs.js';import t from"../appEnv/index.js";import n from"../common/notFound.js";import{functionHandler as i}from"../utils/decorator.js";import s from"../common/apis/general/removeSavedFile.js";import{__generator as m}from'./../external/tslib/tslib.es6.js';var a=[o({filePath:r.string()}).optional()];function l(e){return p.apply(this,arguments)}function p(){return p=e((function(r){return m(this,(function(o){return[2,i("removeSavedFile",a,[r],(l=e((function(e){return m(this,(function(r){switch(r.label){case 0:return t.isMp?[4,s(e.filePath)]:[3,2];case 1:return[2,r.sent()];case 2:return t.isMpWeb?[2,Promise.resolve()]:[2,Promise.reject(n("removeSavedFile",{}))]}}))})),function(e){return l.apply(this,arguments)}))];var l}))})),p.apply(this,arguments)}export{l as removeSavedFile};
|
package/apis/apis/saveFile.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import e,{object as o}from'./../external/zod/lib/index.mjs.js';import t from"../appEnv/index.js";import s from"../common/notFound.js";import{functionHandler as n}from"../utils/decorator.js";import i from"../common/apis/general/lfsSaveFile.js";import{__generator as m}from'./../external/tslib/tslib.es6.js';var a=[o({filePath:e.string()}).optional()];function l(r){return p.apply(this,arguments)}function p(){return p=r((function(e){return m(this,(function(o){return[2,n("saveFile",a,[e],(l=r((function(r){var e;return m(this,(function(o){switch(o.label){case 0:return t.isMp?(e=r.filePath,[4,i(e)]):[3,2];case 1:return[2,o.sent()];case 2:return t.isMpWeb?[2,Promise.resolve()]:[2,Promise.reject(s("saveFile",{}))]}}))})),function(r){return l.apply(this,arguments)}))];var l}))})),p.apply(this,arguments)}export{l as saveFile};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import r from"../../notFound.js";import{__generator as t}from'./../../../external/tslib/tslib.es6.js';var n=e((function(){return t(this,(function(n){return[2,new Promise((o=e((function(e,n){var o;return t(this,(function(t){switch(t.label){case 0:return console.log("DUNGNN 2",ZaloJavaScriptInterface),ZaloJavaScriptInterface&&"function"==typeof ZaloJavaScriptInterface.checkCameraPermission?[4,ZaloJavaScriptInterface.checkCameraPermission()]:[3,2];case 1:return o=t.sent(),console.log("DUNGNN 3",JSON.stringify(o)),[2,e({userAllow:"grant"===o})];case 2:return n(r("checkCameraPermission",{})),[2]}}))})),function(e,r){return o.apply(this,arguments)}))];var o}))}));export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import o from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import s from"../../call/index.js";import{__generator as n}from'./../../../external/tslib/tslib.es6.js';var e=o((function(){return n(this,(function(o){return[2,new Promise((function(o,n){s("LFS_FETCH",{},{success:function(s){o(s)},fail:function(o){n(o)}},{})}))]}))}));export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import n from"../../call/index.js";import{__generator as o}from'./../../../external/tslib/tslib.es6.js';var s,e=(s=t((function(t,s){return o(this,(function(o){return[2,new Promise((function(o,e){n("LFS_FILE_INFO",{file_path:t,digest_algorithm:s},{success:function(t){o(t)},fail:function(t){e(t)}},{})}))]}))})),function(t,n){return s.apply(this,arguments)});export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import t from'./../../../external/@swc/helpers/src/_object_spread.mjs.js';import r from"../../call/index.js";import{__generator as o}from'./../../../external/tslib/tslib.es6.js';var s=e((function(){return o(this,(function(e){return[2,new Promise((function(e,o){r("LFS_LIST",{},{success:function(r){console.log("DUNGNN LFS_LIST",r);var o=r.map((function(e){var r=t({},e);try{r.filePath=r.file_path,r.createTime=r.created_time,delete r.file_path,delete r.created_time}catch(e){}return r}));e({list:o})},fail:function(e){o(e)}},{})}))]}))}));export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import n from"../../call/index.js";import{__generator as s}from'./../../../external/tslib/tslib.es6.js';var e,o=(e=t((function(t){return s(this,(function(s){return[2,new Promise((function(s,e){n("LFS_FILE_SAVE",{file_path:t},{success:function(t){s({savedPath:t})},fail:function(t){e(t)}},{})}))]}))})),function(t){return e.apply(this,arguments)});export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import n from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import t from"../../call/index.js";import{__generator as o}from'./../../../external/tslib/tslib.es6.js';var s,e=(s=n((function(n){return o(this,(function(o){return[2,new Promise((function(o,s){t("LFS_FILE_REMOVE",{file_path:n},{success:function(n){o(n)},fail:function(n){s(n)}},{})}))]}))})),function(n){return s.apply(this,arguments)});export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import n from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import s from"../../call/index.js";import{__generator as t}from'./../../../external/tslib/tslib.es6.js';var e,o=(e=n((function(n){return t(this,(function(t){return[2,new Promise((function(t,e){s("SAVE_FILE",{fileUrl:n},{success:function(n){t({saved_path:n})},fail:function(n){e(n)}},{})}))]}))})),function(n){return e.apply(this,arguments)});export{o as default};
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|