zmp-sdk 2.41.0 → 2.42.0-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.
- package/apis/apis/checkNFC.js +1 -0
- package/apis/common/apis/general/checkNFC.js +1 -0
- package/apis/constants.js +1 -1
- package/apis/index.d.ts +33 -3
- package/apis/index.es.js +1 -1
- package/apis/index.js +1 -1
- package/apis/package.json.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +34 -3
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -844,6 +844,34 @@ declare const ACTION: {
|
|
|
844
844
|
MP_SELECT_PAYMENT_METHOD: {
|
|
845
845
|
skipJump: boolean;
|
|
846
846
|
};
|
|
847
|
+
CHECK_NFC: {
|
|
848
|
+
skipJump: boolean;
|
|
849
|
+
versionLive: {
|
|
850
|
+
iOS: number;
|
|
851
|
+
};
|
|
852
|
+
errorList: {
|
|
853
|
+
all: {
|
|
854
|
+
"-1": {
|
|
855
|
+
mapTo: {
|
|
856
|
+
code: number;
|
|
857
|
+
message: string;
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
"-600": {
|
|
861
|
+
mapTo: {
|
|
862
|
+
code: number;
|
|
863
|
+
message: string;
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
"-602": {
|
|
867
|
+
mapTo: {
|
|
868
|
+
code: number;
|
|
869
|
+
message: string;
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
};
|
|
847
875
|
SCAN_NFC: {
|
|
848
876
|
skipJump: boolean;
|
|
849
877
|
haveCallback: boolean;
|
|
@@ -3493,7 +3521,7 @@ declare const showFunctionButtonWidgetArgs: ZodObject<{
|
|
|
3493
3521
|
}>[];
|
|
3494
3522
|
declare function showFunctionButtonWidget(args: AsyncVoidCallback & TypeOf<(typeof showFunctionButtonWidgetArgs)[0]>): Promise<void>;
|
|
3495
3523
|
|
|
3496
|
-
declare const
|
|
3524
|
+
declare const scanNFCArgs: ZodObject<{
|
|
3497
3525
|
type: ZodEnum<["cccd"]>;
|
|
3498
3526
|
data: ZodObject<{
|
|
3499
3527
|
mrz: ZodString;
|
|
@@ -3513,7 +3541,9 @@ declare const shareNFCArgs: ZodObject<{
|
|
|
3513
3541
|
};
|
|
3514
3542
|
type: "cccd";
|
|
3515
3543
|
}>[];
|
|
3516
|
-
declare function scanNFC(args: AsyncCallback & TypeOf<(typeof
|
|
3544
|
+
declare function scanNFC(args: AsyncCallback & TypeOf<(typeof scanNFCArgs)[0]>): Promise<any>;
|
|
3545
|
+
|
|
3546
|
+
declare function checkNFC(args: AsyncVoidCallback): Promise<any>;
|
|
3517
3547
|
|
|
3518
3548
|
declare const otherApis: {
|
|
3519
3549
|
Events: typeof Events;
|
|
@@ -3611,6 +3641,7 @@ declare const otherApis: {
|
|
|
3611
3641
|
showOAWidget: typeof showOAWidget;
|
|
3612
3642
|
showFunctionButtonWidget: typeof showFunctionButtonWidget;
|
|
3613
3643
|
scanNFC: typeof scanNFC;
|
|
3644
|
+
checkNFC: typeof checkNFC;
|
|
3614
3645
|
FacingMode: typeof FacingMode;
|
|
3615
3646
|
PhotoFormat: typeof PhotoFormat;
|
|
3616
3647
|
PhotoQuality: typeof PhotoQuality;
|
|
@@ -3628,4 +3659,4 @@ declare const checkout: {
|
|
|
3628
3659
|
purchase: typeof purchase;
|
|
3629
3660
|
};
|
|
3630
3661
|
|
|
3631
|
-
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, checkout as CheckoutSDK, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, FunctionProps, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanNFCType, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TextAlignType, VibrateType, ZMACamera, ZMACameraImp, addRating, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, 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, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, purchase, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanNFC, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|
|
3662
|
+
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, checkout as CheckoutSDK, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, FunctionProps, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanNFCType, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TextAlignType, VibrateType, ZMACamera, ZMACameraImp, addRating, authorize, checkNFC, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, 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, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, purchase, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanNFC, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|