zmp-sdk 2.50.0-beta.1 → 2.50.0-beta.2

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/index.d.ts CHANGED
@@ -1031,6 +1031,14 @@ declare const ACTION: {
1031
1031
  GET_DEVICE_INFO: {
1032
1032
  skipJump: boolean;
1033
1033
  };
1034
+ MP_OPEN_ZINSTANTVIEW: {
1035
+ skipJump: boolean;
1036
+ timeout: boolean;
1037
+ versionLive: {
1038
+ android: number;
1039
+ iOS: number;
1040
+ };
1041
+ };
1034
1042
  };
1035
1043
  declare const AUTHEN_SCOPE_VALUES: readonly ["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"];
1036
1044
  declare const GET_SETTINGS_SCOPE_VALUES: readonly ["scope.userInfo", "scope.userLocation", "scope.userPhonenumber", "scope.camera", "scope.micro"];
@@ -1454,6 +1462,16 @@ type GetSettingReturn = {
1454
1462
  type SaveFileReturns = {
1455
1463
  savedPath: string;
1456
1464
  };
1465
+ type CheckoutPopupOpenParams = {
1466
+ qrContent: string;
1467
+ merchantLogo: string;
1468
+ merchantName: string;
1469
+ amount: number;
1470
+ orderDesscription: string;
1471
+ };
1472
+ type CheckoutPopupResponseData = {
1473
+ status: string;
1474
+ };
1457
1475
 
1458
1476
  declare enum CameraEvents {
1459
1477
  OnFrameCallback = "h5.event.camera.frame",
@@ -2493,6 +2511,25 @@ declare const eventTypeType: ZodEnum<["APP_INITIALIZING", "APP_READY"]>;
2493
2511
  declare const payloadType: ZodAny;
2494
2512
  declare function logEvent(eventType: TypeOf<typeof eventTypeType>, payload: TypeOf<typeof payloadType>): void;
2495
2513
 
2514
+ declare const checkoutPopupArgs: ZodObject<{
2515
+ amount: ZodUnion<[ZodString, ZodNumber]>;
2516
+ orderDesscription: ZodString;
2517
+ qrContent: ZodString;
2518
+ }, "strip", ZodTypeAny, {
2519
+ amount: string | number;
2520
+ orderDesscription: string;
2521
+ qrContent: string;
2522
+ }, {
2523
+ amount: string | number;
2524
+ orderDesscription: string;
2525
+ qrContent: string;
2526
+ }>[];
2527
+ /**
2528
+ * Gửi thông tin thanh toán đến Checkout để mở popup
2529
+ * @param args
2530
+ */
2531
+ declare function openCheckoutPopup(args: AsyncCallback<CheckoutPopupOpenParams> & TypeOf<(typeof checkoutPopupArgs)[0]>): Promise<CheckoutPopupResponseData>;
2532
+
2496
2533
  declare const openPaymentLinkArgs: ZodObject<{
2497
2534
  url: ZodString;
2498
2535
  config: ZodOptional<ZodObject<{
@@ -5607,6 +5644,7 @@ declare const Payment: {
5607
5644
  createOrderIAP: typeof createOrderIAP;
5608
5645
  selectPaymentMethod: typeof selectPaymentMethod;
5609
5646
  openPaymentLink: typeof openPaymentLink;
5647
+ openCheckoutPopup: typeof openCheckoutPopup;
5610
5648
  };
5611
5649
  declare const CheckoutSDK: {
5612
5650
  purchase: typeof purchase;
@@ -5615,6 +5653,7 @@ declare const CheckoutSDK: {
5615
5653
  createOrderIAP: typeof createOrderIAP;
5616
5654
  selectPaymentMethod: typeof selectPaymentMethod;
5617
5655
  openPaymentLink: typeof openPaymentLink;
5656
+ openCheckoutPopup: typeof openCheckoutPopup;
5618
5657
  };
5619
5658
 
5620
5659
  declare const downloadFileArgs: ZodOptional<ZodObject<{
@@ -5948,6 +5987,7 @@ declare const otherApis: {
5948
5987
  createOrderIAP: typeof createOrderIAP;
5949
5988
  selectPaymentMethod: typeof selectPaymentMethod;
5950
5989
  openPaymentLink: typeof openPaymentLink;
5990
+ openCheckoutPopup: typeof openCheckoutPopup;
5951
5991
  };
5952
5992
  CheckoutSDK: {
5953
5993
  purchase: typeof purchase;
@@ -5956,6 +5996,7 @@ declare const otherApis: {
5956
5996
  createOrderIAP: typeof createOrderIAP;
5957
5997
  selectPaymentMethod: typeof selectPaymentMethod;
5958
5998
  openPaymentLink: typeof openPaymentLink;
5999
+ openCheckoutPopup: typeof openCheckoutPopup;
5959
6000
  };
5960
6001
  downloadFile: typeof downloadFile;
5961
6002
  trackingManager: {
@@ -5976,4 +6017,4 @@ declare const otherApis: {
5976
6017
  ZMACameraImp: typeof ZMACameraImp;
5977
6018
  };
5978
6019
 
5979
- export { Action, AndroidBottomNavigationBarType, AppError, AsyncCallback, AsyncCallbackFailObject, AsyncProgressCallback, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, CheckoutKit, CheckoutSDK, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, FunctionProps, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetDeviceInfoReturn, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenProfilePickerType, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PickedProfile, PlatformType, PostFeedType, ProfileInfo, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, SaveFileReturns, ScanNFCType, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TempFile, TextAlignType, UserInfo, VibrateType, ZMACamera, ZMACameraImp, addRating, authorize, checkNFC, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, downloadFile, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getDeviceInfo, getEntrySource, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, loadAd, login, minimizeApp, nativeStorage, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openDocument, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, purchase, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, saveVideoToGallery, scanNFC, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showCustomOAWidget, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, trackingManager, unfollowOA, vibrate, viewOAQr };
6020
+ export { Action, AndroidBottomNavigationBarType, AppError, AsyncCallback, AsyncCallbackFailObject, AsyncProgressCallback, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, CheckoutKit, CheckoutPopupOpenParams, CheckoutPopupResponseData, CheckoutSDK, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, FunctionProps, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetDeviceInfoReturn, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenProfilePickerType, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PickedProfile, PlatformType, PostFeedType, ProfileInfo, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, SaveFileReturns, ScanNFCType, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TempFile, TextAlignType, UserInfo, VibrateType, ZMACamera, ZMACameraImp, addRating, authorize, checkNFC, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, downloadFile, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getDeviceInfo, getEntrySource, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, loadAd, login, minimizeApp, nativeStorage, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openDocument, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, purchase, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, saveVideoToGallery, scanNFC, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showCustomOAWidget, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, trackingManager, unfollowOA, vibrate, viewOAQr };