zmp-sdk 2.47.0-beta.7 → 2.47.1-beta.1

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 e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import{object as r,number as o}from'./../external/zod/lib/index.mjs.js';import n from"../appEnv/index.js";import t from"../common/notFound.js";import{functionHandler as s}from"../utils/decorator.js";import i from"../utils/lodash.js";import{APIS as a}from"../constants.js";import l from"../common/apis/general/openProfilePicker.js";import u from"../common/token.js";import{__generator as d}from'./../external/tslib/tslib.es6.js';var m=[r({maxProfile:o().min(1).max(10).optional().default(1)})];function c(e){return p.apply(this,arguments)}function p(){return p=e((function(r){return d(this,(function(o){return[2,s("openProfilePicker",m,[r],(c=e((function(e){var r,o,s,m,c;return d(this,(function(d){switch(d.label){case 0:return n.isMp?[4,l(null==e?void 0:e.maxProfile)]:[3,8];case 1:if(!((r=d.sent()).length>0))return[3,7];d.label=2;case 2:return d.trys.push([2,6,,7]),[4,u.getAccessToken()];case 3:return s=d.sent(),[4,fetch(a.GET_LIST_USER_INFO,{method:"POST",headers:{"Content-Type":"application/json",access_token:s||""},body:JSON.stringify({fields:"id,name,picture",user_ids:r})})];case 4:return[4,d.sent().json()];case 5:if(0!==(m=d.sent()).error||!m.data)throw new Error(m.message);return o=r.map((function(e){var r,o,n,t,s,a,l,u,d,c,p;return{id:(null===(r=m.data[e])||void 0===r||null===(o=r.user_info)||void 0===o?void 0:o.user_id_by_app)||"",profile:{name:null===(n=m.data[e])||void 0===n||null===(t=n.user_info)||void 0===t?void 0:t.name,avatar:null===(s=m.data[e])||void 0===s||null===(a=s.user_info)||void 0===a||null===(l=a.picture)||void 0===l||null===(u=l.data)||void 0===u?void 0:u.url},code:0!==(null===(d=m.data[e])||void 0===d?void 0:d.error)?-1:0,message:"Get profile: ".concat(i.isUndefined(null===(c=m.data[e])||void 0===c?void 0:c.message)?"Unknown error":null===(p=m.data[e])||void 0===p?void 0:p.message)}})),[3,7];case 6:return c=d.sent(),o=r.map((function(e){return{id:e,profile:{name:"",avatar:""},code:-1,message:"Can't get profile: ".concat(c.message)}})),[3,7];case 7:return[2,{users:o||[]}];case 8:return n.isMpWeb?[2,Promise.resolve({users:[]})]:[2,Promise.reject(t("openProfilePicker",{}))]}}))})),function(e){return c.apply(this,arguments)}))];var c}))})),p.apply(this,arguments)}export{c as openProfilePicker};
1
+ import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import r from'./../external/@swc/helpers/src/_to_consumable_array.mjs.js';import n,{object as o,number as s,array as t,string as a}from'./../external/zod/lib/index.mjs.js';import i from"../appEnv/index.js";import l from"../common/notFound.js";import{functionHandler as u}from"../utils/decorator.js";import c from"../utils/lodash.js";import{APIS as d}from"../constants.js";import m from"../common/apis/general/openProfilePicker.js";import p from"../common/token.js";import{__generator as f,__values as v}from'./../external/tslib/tslib.es6.js';import{OppenProfilePickerType as h}from"../types/enum.js";var _=[o({maxProfile:s().optional().default(1),src:n.enum([h.TOOL_DEL_FRIEND]).optional(),uids:t(a()).optional()}).superRefine((function(e,r){var n=e.src,o=e.maxProfile;n===h.TOOL_DEL_FRIEND?o<1&&r.addIssue({code:"custom",path:["maxProfile"],message:"maxProfile must be at least 1 when src is 'tool_del_friend'"}):(o<1||o>10)&&r.addIssue({code:"custom",path:["maxProfile"],message:"maxProfile must be between 1 and 10"})}))];function b(e){return j.apply(this,arguments)}function j(){return j=e((function(n){return f(this,(function(o){return[2,u("openProfilePicker",_,[n],(s=e((function(e){var n,o,s,t,a,u,h,_,b,j,y,g;return f(this,(function(P){switch(P.label){case 0:return i.isMp?[4,m(null==e?void 0:e.maxProfile,null==e?void 0:e.src,null==e?void 0:e.uids)]:[3,12];case 1:return n=P.sent(),o=function(e,r){return Array.from({length:Math.ceil(e.length/r)},(function(n,o){return e.slice(o*r,o*r+r)}))},n.length>0?[4,p.getAccessToken()]:[3,11];case 2:s=P.sent(),t=o(n,20),a=[],u=!0,h=!1,_=void 0,P.label=3;case 3:P.trys.push([3,8,9,10]),b=function(){var e,n,o,t,i,l,u;return f(this,(function(m){switch(m.label){case 0:e=y.value,m.label=1;case 1:return m.trys.push([1,4,,5]),[4,fetch(d.GET_LIST_USER_INFO,{method:"POST",headers:{"Content-Type":"application/json",access_token:s||""},body:JSON.stringify({fields:"id,name,picture",user_ids:e})})];case 2:return[4,m.sent().json()];case 3:if(0!==(n=m.sent()).error||!n.data)throw new Error(n.message);return t=e.map((function(e){var r,o,s,t,a,i,l,u,d,m,p;return{id:e in n.data&&(null===(r=n.data[e])||void 0===r||null===(o=r.user_info)||void 0===o?void 0:o.user_id_by_app)||"",profile:{name:null===(s=n.data[e])||void 0===s||null===(t=s.user_info)||void 0===t?void 0:t.name,avatar:null===(a=n.data[e])||void 0===a||null===(i=a.user_info)||void 0===i||null===(l=i.picture)||void 0===l||null===(u=l.data)||void 0===u?void 0:u.url},code:e in n.data&&0!==(null===(d=n.data[e])||void 0===d?void 0:d.error)?-1:0,message:"Get profile: ".concat(e in n.data&&!c.isUndefined(null===(m=n.data[e])||void 0===m?void 0:m.message)?null===(p=n.data[e])||void 0===p?void 0:p.message:"Unknown error")}})),(o=a).push.apply(o,r(t)),[3,5];case 4:return i=m.sent(),u=e.map((function(e){return{id:e,profile:{name:"",avatar:""},code:-1,message:"Can't get profile: ".concat(i.message)}})),(l=a).push.apply(l,r(u)),[3,5];case 5:return[2]}}))},j=t[Symbol.iterator](),P.label=4;case 4:return(u=(y=j.next()).done)?[3,7]:[5,v(b())];case 5:P.sent(),P.label=6;case 6:return u=!0,[3,4];case 7:return[3,10];case 8:return g=P.sent(),h=!0,_=g,[3,10];case 9:try{u||null==j.return||j.return()}finally{if(h)throw _}return[7];case 10:return[2,{users:a}];case 11:return[2,{users:[]}];case 12:return i.isMpWeb?[2,Promise.resolve({users:[]})]:[2,Promise.reject(l("openProfilePicker",{}))]}}))})),function(e){return s.apply(this,arguments)}))];var s}))})),j.apply(this,arguments)}export{b as openProfilePicker};
@@ -1 +1 @@
1
- import r 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 i=r((function(){var r,i=arguments;return o(this,(function(o){return r=i.length>0&&void 0!==i[0]?i[0]:1,[2,new Promise((function(o,i){n("MP_OPEN_PROFILE_PICKER",{maxProfile:r},{success:function(r){Array.isArray(r)?o(r.map((function(r){return r.id}))):o([])},fail:function(r){i(r)}},{isMultiCallback:!0})}))]}))}));export{i as default};
1
+ import r from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import o from'./../../../external/@swc/helpers/src/_object_spread.mjs.js';import s from"../../call/index.js";import{ZAPP_ID as e,APP_ID as t}from"../../../constants.js";import{__generator as i}from'./../../../external/tslib/tslib.es6.js';import{OppenProfilePickerType as n}from"../../../types/enum.js";var m=r((function(){var r,m,a,l=arguments;return i(this,(function(i){return r=l.length>0&&void 0!==l[0]?l[0]:1,m=l.length>1?l[1]:void 0,a=l.length>2?l[2]:void 0,[2,new Promise((function(i,l){s("MP_OPEN_PROFILE_PICKER",o({},m===n.TOOL_DEL_FRIEND?{maxProfile:r,src:m,uids:a,zapp:e,appId:t}:{maxProfile:r}),{success:function(r){Array.isArray(r)?i(r.map((function(r){return r.id}))):i([])},fail:function(r){l(r)}},{isMultiCallback:!0})}))]}))}));export{m as default};
@@ -1 +1 @@
1
- function e(e,r){var t,n,o,l,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function u(u){return function(i){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(t=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=r.call(e,a)}catch(e){u=[6,e],n=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}export{e as __generator};
1
+ function e(e,t){var r,n,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function t(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}export{e as __generator,t as __values};
package/apis/index.d.ts CHANGED
@@ -33,6 +33,9 @@ declare enum Events {
33
33
  PaymentClose = "action.payment.close",
34
34
  DownloadProgress = "h5.event.webview.download.progress"
35
35
  }
36
+ declare enum OppenProfilePickerType {
37
+ "TOOL_DEL_FRIEND" = "tool_del_friend"
38
+ }
36
39
 
37
40
  declare const ACTION: {
38
41
  GET_DOWNLOADED_STICKER: {
@@ -3860,11 +3863,25 @@ declare function sendDataToPreviousMiniApp(args: AsyncVoidCallback & TypeOf<(typ
3860
3863
  */
3861
3864
  declare function getPhoneNumber(args?: AsyncCallback<GetPhoneNumberReturns>): Promise<GetPhoneNumberReturns>;
3862
3865
 
3863
- declare const openProfilePickerArgs: ZodObject<{
3866
+ declare const openProfilePickerArgs: ZodEffects<ZodObject<{
3864
3867
  maxProfile: ZodDefault<ZodOptional<ZodNumber>>;
3868
+ src: ZodOptional<ZodEnum<[OppenProfilePickerType]>>;
3869
+ uids: ZodOptional<ZodArray<ZodString, "many">>;
3865
3870
  }, "strip", ZodTypeAny, {
3871
+ src?: OppenProfilePickerType | undefined;
3872
+ uids?: string[] | undefined;
3873
+ maxProfile: number;
3874
+ }, {
3875
+ src?: OppenProfilePickerType | undefined;
3876
+ uids?: string[] | undefined;
3877
+ maxProfile?: number | undefined;
3878
+ }>, {
3879
+ src?: OppenProfilePickerType | undefined;
3880
+ uids?: string[] | undefined;
3866
3881
  maxProfile: number;
3867
3882
  }, {
3883
+ src?: OppenProfilePickerType | undefined;
3884
+ uids?: string[] | undefined;
3868
3885
  maxProfile?: number | undefined;
3869
3886
  }>[];
3870
3887
  /**
@@ -3877,6 +3894,12 @@ declare const openProfilePickerArgs: ZodObject<{
3877
3894
  *
3878
3895
  * @returns {OpenProfilePickerReturns} danh sách những bạn bè được chọn.
3879
3896
  *
3897
+ * @example Mở danh sách chọn bạn bè, mặc định là 1 người:
3898
+ * ```ts
3899
+ * const { users } = await openProfilePicker({});
3900
+ * console.log(users);
3901
+ * ```
3902
+ *
3880
3903
  * @example Chọn tối đa 2 bạn bè trong danh sách bạn bè của người dùng:
3881
3904
  * ```ts
3882
3905
  * const { users } = await openProfilePicker({
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"./index.js";import t from"./appEnv/getEnv.js";export{AndroidBottomNavigationBarType,ChatType,Events as EventName,Events,IAPPayType,IOSSafeAreaBottomType,JumpStatus,MediaPickerType,NetworkType,OrientationType,PlatformType,PostFeedType,ProfileType,ProrationMode,ScanNFCType,ShareSheetType,StatusBarType,TextAlignType,VibrateType}from"./types/enum.js";export{CameraEvents,FacingMode,PhotoFormat,PhotoQuality,StreamType}from"./types/media.js";export{AppError}from"./utils/errorHandler.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{saveVideoToGallery}from"./apis/saveVideoToGallery.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{createOrder}from"./apis/payment/createOrder.js";export{purchase}from"./apis/payment/purchase.js";export{selectPaymentMethod}from"./apis/payment/selectPaymentMethod.js";export{checkTransaction}from"./apis/payment/checkTransaction.js";export{createOrderIAP}from"./apis/payment/createOrderIAP.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{getSetting}from"./apis/getSetting.js";export{authorize}from"./apis/authorize.js";export{checkZaloCameraPermission}from"./apis/checkZaloCameraPermission.js";export{getUserID}from"./apis/getUserID.js";export{getIDToken}from"./apis/getIDToken.js";export{createCameraContext}from"./apis/createCameraContext.js";export{setupAd}from"./apis/adtimaAd/setup.js";export{loadAd}from"./apis/adtimaAd/load.js";export{displayAd}from"./apis/adtimaAd/display.js";export{refreshAd}from"./apis/adtimaAd/refresh.js";export{showOAWidget}from"./apis/showOAWidget.js";export{showFunctionButtonWidget}from"./apis/showFunctionButtonWidget.js";export{scanNFC}from"./apis/scanNFC.js";export{checkNFC}from"./apis/checkNFC.js";export{nativeStorage}from"./apis/native-storage/index.js";export{CheckoutSDK,Payment}from"./apis/payment/index.js";export{downloadFile}from"./apis/downloadFile.js";export{trackingManager}from"./apis/trackingManager/index.js";export{showCustomOAWidget}from"./apis/showCustomOAWidget.js";export{CheckoutKit}from"./apis/checkoutKit/index.js";export{ZMACameraImp}from"./media/zmaCamera.js";var r,s,a=e(o,["createOrder","checkTransaction","createOrderIAP","selectPaymentMethod","purchase"]);(null==(s=null===(r=t())||void 0===r?void 0:r.appEnv)?void 0:s.isMp)&&(window.ZaloMiniAppSDK={},Object.assign(window.ZaloMiniAppSDK,o));export{a 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";export{AndroidBottomNavigationBarType,ChatType,Events as EventName,Events,IAPPayType,IOSSafeAreaBottomType,JumpStatus,MediaPickerType,NetworkType,OppenProfilePickerType,OrientationType,PlatformType,PostFeedType,ProfileType,ProrationMode,ScanNFCType,ShareSheetType,StatusBarType,TextAlignType,VibrateType}from"./types/enum.js";export{CameraEvents,FacingMode,PhotoFormat,PhotoQuality,StreamType}from"./types/media.js";export{AppError}from"./utils/errorHandler.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{saveVideoToGallery}from"./apis/saveVideoToGallery.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{createOrder}from"./apis/payment/createOrder.js";export{purchase}from"./apis/payment/purchase.js";export{selectPaymentMethod}from"./apis/payment/selectPaymentMethod.js";export{checkTransaction}from"./apis/payment/checkTransaction.js";export{createOrderIAP}from"./apis/payment/createOrderIAP.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{getSetting}from"./apis/getSetting.js";export{authorize}from"./apis/authorize.js";export{checkZaloCameraPermission}from"./apis/checkZaloCameraPermission.js";export{getUserID}from"./apis/getUserID.js";export{getIDToken}from"./apis/getIDToken.js";export{createCameraContext}from"./apis/createCameraContext.js";export{setupAd}from"./apis/adtimaAd/setup.js";export{loadAd}from"./apis/adtimaAd/load.js";export{displayAd}from"./apis/adtimaAd/display.js";export{refreshAd}from"./apis/adtimaAd/refresh.js";export{showOAWidget}from"./apis/showOAWidget.js";export{showFunctionButtonWidget}from"./apis/showFunctionButtonWidget.js";export{scanNFC}from"./apis/scanNFC.js";export{checkNFC}from"./apis/checkNFC.js";export{nativeStorage}from"./apis/native-storage/index.js";export{CheckoutSDK,Payment}from"./apis/payment/index.js";export{downloadFile}from"./apis/downloadFile.js";export{trackingManager}from"./apis/trackingManager/index.js";export{showCustomOAWidget}from"./apis/showCustomOAWidget.js";export{CheckoutKit}from"./apis/checkoutKit/index.js";export{ZMACameraImp}from"./media/zmaCamera.js";var r,s,a=e(o,["createOrder","checkTransaction","createOrderIAP","selectPaymentMethod","purchase"]);(null==(s=null===(r=t())||void 0===r?void 0:r.appEnv)?void 0:s.isMp)&&(window.ZaloMiniAppSDK={},Object.assign(window.ZaloMiniAppSDK,o));export{a as default};
@@ -1 +1 @@
1
- var a="2.47.0-beta.7";export{a as version};
1
+ var a="2.47.1-beta.1";export{a as version};
@@ -1 +1 @@
1
- var e,n,o,a,i,t,c,l,u,r,p,d,m,s,f,h,w,_;!function(e){e.none="none",e.wifi="wifi",e.cellular="cellular",e.unknown="unknown"}(e||(e={})),function(e){e.wp="wp",e.android="android",e.iOS="iOS",e.unknown="unknown"}(n||(n={})),function(e){e.AppPaused="h5.event.paused",e.AppResumed="h5.event.resumed",e.NetworkChanged="h5.event.connection.changed",e.OnDataCallback="h5.event.webview.result",e.WebviewClosed="h5.event.webview.close",e.OpenApp="h5.event.open.mp",e.AppClose="h5.event.action.close",e.PaymentCallback="payment.callback",e.PaymentResult="action.payment.result",e.PaymentDone="action.payment.done",e.PaymentClose="action.payment.close",e.DownloadProgress="h5.event.webview.download.progress"}(o||(o={})),function(e){e.DOING="doing",e.DONE="done"}(a||(a={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa",e[e.aliasOA=2]="aliasOA"}(i||(i={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa"}(t||(t={})),function(e){e[e.image=1]="image",e[e.multi_image=2]="multi_image",e[e.link=4]="link",e[e.profile=5]="profile"}(c||(c={})),function(e){e[e.cccd=1]="cccd"}(l||(l={})),function(e){e[e.image=1]="image",e[e.gif=11]="gif",e[e.video=12]="video",e[e.link=4]="link",e[e.oa=5]="oa",e[e.zmp=20]="zmp",e[e.multi_image=21]="multi_image",e[e.zmp_deep_link=4]="zmp_deep_link",e[e.text=22]="text"}(u||(u={})),function(e){e[e.auto=1]="auto",e[e.portrait=2]="portrait",e[e.landscape=3]="landscape"}(r||(r={})),function(e){e[e.oneShot=0]="oneShot"}(p||(p={})),function(e){e[e.zcamera=3]="zcamera",e[e.zcamera_photo=1]="zcamera_photo",e[e.zcamera_video=2]="zcamera_video",e[e.zcamera_scan=7]="zcamera_scan",e[e.photo=4]="photo",e[e.video=5]="video",e[e.file=6]="file"}(d||(d={})),function(e){e.SUBSCRIPTION="SUBSCRIPTION",e.ONETIME="ONETIME"}(m||(m={})),function(e){e[e.UNKNOW=0]="UNKNOW",e[e.DEFERRED=1]="DEFERRED",e[e.IMMEDIATE_AND_CHARGE_FULL_PRICE=2]="IMMEDIATE_AND_CHARGE_FULL_PRICE"}(s||(s={})),function(e){e[e.normal=1]="normal",e[e.hidden=0]="hidden",e[e.transparent=2]="transparent"}(f||(f={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(h||(h={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(w||(w={})),function(e){e[e.left=0]="left",e[e.center=1]="center"}(_||(_={}));export{h as AndroidBottomNavigationBarType,t as ChatType,o as Events,m as IAPPayType,w as IOSSafeAreaBottomType,a as JumpStatus,d as MediaPickerType,e as NetworkType,r as OrientationType,n as PlatformType,c as PostFeedType,i as ProfileType,s as ProrationMode,l as ScanNFCType,u as ShareSheetType,f as StatusBarType,_ as TextAlignType,p as VibrateType};
1
+ var e,n,o,a,i,t,c,l,u,r,d,p,m,s,f,h,_,w,E;!function(e){e.none="none",e.wifi="wifi",e.cellular="cellular",e.unknown="unknown"}(e||(e={})),function(e){e.wp="wp",e.android="android",e.iOS="iOS",e.unknown="unknown"}(n||(n={})),function(e){e.AppPaused="h5.event.paused",e.AppResumed="h5.event.resumed",e.NetworkChanged="h5.event.connection.changed",e.OnDataCallback="h5.event.webview.result",e.WebviewClosed="h5.event.webview.close",e.OpenApp="h5.event.open.mp",e.AppClose="h5.event.action.close",e.PaymentCallback="payment.callback",e.PaymentResult="action.payment.result",e.PaymentDone="action.payment.done",e.PaymentClose="action.payment.close",e.DownloadProgress="h5.event.webview.download.progress"}(o||(o={})),function(e){e.DOING="doing",e.DONE="done"}(a||(a={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa",e[e.aliasOA=2]="aliasOA"}(i||(i={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa"}(t||(t={})),function(e){e[e.image=1]="image",e[e.multi_image=2]="multi_image",e[e.link=4]="link",e[e.profile=5]="profile"}(c||(c={})),function(e){e[e.cccd=1]="cccd"}(l||(l={})),function(e){e[e.image=1]="image",e[e.gif=11]="gif",e[e.video=12]="video",e[e.link=4]="link",e[e.oa=5]="oa",e[e.zmp=20]="zmp",e[e.multi_image=21]="multi_image",e[e.zmp_deep_link=4]="zmp_deep_link",e[e.text=22]="text"}(u||(u={})),function(e){e[e.auto=1]="auto",e[e.portrait=2]="portrait",e[e.landscape=3]="landscape"}(r||(r={})),function(e){e[e.oneShot=0]="oneShot"}(d||(d={})),function(e){e[e.zcamera=3]="zcamera",e[e.zcamera_photo=1]="zcamera_photo",e[e.zcamera_video=2]="zcamera_video",e[e.zcamera_scan=7]="zcamera_scan",e[e.photo=4]="photo",e[e.video=5]="video",e[e.file=6]="file"}(p||(p={})),function(e){e.SUBSCRIPTION="SUBSCRIPTION",e.ONETIME="ONETIME"}(m||(m={})),function(e){e[e.UNKNOW=0]="UNKNOW",e[e.DEFERRED=1]="DEFERRED",e[e.IMMEDIATE_AND_CHARGE_FULL_PRICE=2]="IMMEDIATE_AND_CHARGE_FULL_PRICE"}(s||(s={})),function(e){e[e.normal=1]="normal",e[e.hidden=0]="hidden",e[e.transparent=2]="transparent"}(f||(f={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(h||(h={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(_||(_={})),function(e){e[e.left=0]="left",e[e.center=1]="center"}(w||(w={})),function(e){e.TOOL_DEL_FRIEND="tool_del_friend"}(E||(E={}));export{h as AndroidBottomNavigationBarType,t as ChatType,o as Events,m as IAPPayType,_ as IOSSafeAreaBottomType,a as JumpStatus,p as MediaPickerType,e as NetworkType,E as OppenProfilePickerType,r as OrientationType,n as PlatformType,c as PostFeedType,i as ProfileType,s as ProrationMode,l as ScanNFCType,u as ShareSheetType,f as StatusBarType,w as TextAlignType,d as VibrateType};