zmp-sdk 2.40.0 → 2.41.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/createCameraContext.js +1 -1
- package/apis/apis/scanNFC.js +1 -0
- package/apis/common/apis/general/scanNFC.js +1 -0
- package/apis/common/call/index.js +1 -1
- package/apis/constants.js +1 -1
- package/apis/index.d.ts +80 -1
- package/apis/index.es.js +1 -1
- package/apis/index.js +1 -1
- package/apis/package.json.js +1 -1
- package/apis/types/enum.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +84 -1
- 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
|
@@ -191,6 +191,9 @@ declare enum PostFeedType {
|
|
|
191
191
|
link = 4,
|
|
192
192
|
profile = 5
|
|
193
193
|
}
|
|
194
|
+
declare enum ScanNFCType {
|
|
195
|
+
cccd = 1
|
|
196
|
+
}
|
|
194
197
|
declare enum ShareSheetType {
|
|
195
198
|
image = 1,
|
|
196
199
|
gif = 11,
|
|
@@ -841,6 +844,63 @@ declare const ACTION: {
|
|
|
841
844
|
MP_SELECT_PAYMENT_METHOD: {
|
|
842
845
|
skipJump: boolean;
|
|
843
846
|
};
|
|
847
|
+
SCAN_NFC: {
|
|
848
|
+
skipJump: boolean;
|
|
849
|
+
haveCallback: boolean;
|
|
850
|
+
timeout: number;
|
|
851
|
+
errorList: {
|
|
852
|
+
all: {
|
|
853
|
+
"-1": {
|
|
854
|
+
mapTo: {
|
|
855
|
+
code: number;
|
|
856
|
+
message: string;
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
"-600": {
|
|
860
|
+
mapTo: {
|
|
861
|
+
code: number;
|
|
862
|
+
message: string;
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
"-601": {
|
|
866
|
+
mapTo: {
|
|
867
|
+
code: number;
|
|
868
|
+
message: string;
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
"-602": {
|
|
872
|
+
mapTo: {
|
|
873
|
+
code: number;
|
|
874
|
+
message: string;
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
"-603": {
|
|
878
|
+
mapTo: {
|
|
879
|
+
code: number;
|
|
880
|
+
message: string;
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
"-604": {
|
|
884
|
+
mapTo: {
|
|
885
|
+
code: number;
|
|
886
|
+
message: string;
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
"-605": {
|
|
890
|
+
mapTo: {
|
|
891
|
+
code: number;
|
|
892
|
+
message: string;
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
"-606": {
|
|
896
|
+
mapTo: {
|
|
897
|
+
code: number;
|
|
898
|
+
message: string;
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
};
|
|
844
904
|
MP_CONFIRM_REQUEST_PAYMENT: {
|
|
845
905
|
skipJump: boolean;
|
|
846
906
|
};
|
|
@@ -3433,6 +3493,28 @@ declare const showFunctionButtonWidgetArgs: ZodObject<{
|
|
|
3433
3493
|
}>[];
|
|
3434
3494
|
declare function showFunctionButtonWidget(args: AsyncVoidCallback & TypeOf<(typeof showFunctionButtonWidgetArgs)[0]>): Promise<void>;
|
|
3435
3495
|
|
|
3496
|
+
declare const shareNFCArgs: ZodObject<{
|
|
3497
|
+
type: ZodEnum<["cccd"]>;
|
|
3498
|
+
data: ZodObject<{
|
|
3499
|
+
mrz: ZodString;
|
|
3500
|
+
}, "strip", ZodTypeAny, {
|
|
3501
|
+
mrz: string;
|
|
3502
|
+
}, {
|
|
3503
|
+
mrz: string;
|
|
3504
|
+
}>;
|
|
3505
|
+
}, "strip", ZodTypeAny, {
|
|
3506
|
+
data: {
|
|
3507
|
+
mrz: string;
|
|
3508
|
+
};
|
|
3509
|
+
type: "cccd";
|
|
3510
|
+
}, {
|
|
3511
|
+
data: {
|
|
3512
|
+
mrz: string;
|
|
3513
|
+
};
|
|
3514
|
+
type: "cccd";
|
|
3515
|
+
}>[];
|
|
3516
|
+
declare function scanNFC(args: AsyncCallback & TypeOf<(typeof shareNFCArgs)[0]>): Promise<any>;
|
|
3517
|
+
|
|
3436
3518
|
declare const otherApis: {
|
|
3437
3519
|
Events: typeof Events;
|
|
3438
3520
|
EventName: typeof Events;
|
|
@@ -3528,6 +3610,7 @@ declare const otherApis: {
|
|
|
3528
3610
|
refreshAd: typeof refreshAd;
|
|
3529
3611
|
showOAWidget: typeof showOAWidget;
|
|
3530
3612
|
showFunctionButtonWidget: typeof showFunctionButtonWidget;
|
|
3613
|
+
scanNFC: typeof scanNFC;
|
|
3531
3614
|
FacingMode: typeof FacingMode;
|
|
3532
3615
|
PhotoFormat: typeof PhotoFormat;
|
|
3533
3616
|
PhotoQuality: typeof PhotoQuality;
|
|
@@ -3545,4 +3628,4 @@ declare const checkout: {
|
|
|
3545
3628
|
purchase: typeof purchase;
|
|
3546
3629
|
};
|
|
3547
3630
|
|
|
3548
|
-
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, 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, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|
|
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 };
|