zmp-sdk 2.28.9 → 2.30.0
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/checkIsAllowedInteractWithOA.js +1 -0
- package/apis/apis/index.js +1 -1
- package/apis/apis/openWebview.js +1 -1
- package/apis/common/apis/general/openWebview.js +1 -1
- package/apis/common/utils.js +1 -1
- package/apis/index.d.ts +34 -6
- 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 -1
- package/index.d.ts +35 -6
- package/index.es.js +2 -1
- package/index.js +2 -1
- package/index.umd.js +3 -2
- package/package.json +1 -1
- package/zmp-sdk-v2.28.8.tgz +0 -0
- package/zmp-sdk-v2.29.0.tgz +0 -0
- package/zmp-sdk-v2.28.6.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -164,6 +164,7 @@ declare enum Events {
|
|
|
164
164
|
AppResumed = "h5.event.resumed",
|
|
165
165
|
NetworkChanged = "h5.event.connection.changed",
|
|
166
166
|
OnDataCallback = "h5.event.webview.result",
|
|
167
|
+
WebviewClosed = "h5.event.webview.close",
|
|
167
168
|
OpenApp = "h5.event.open.mp",
|
|
168
169
|
AppClose = "h5.event.action.close",
|
|
169
170
|
PaymentCallback = "payment.callback",
|
|
@@ -2072,9 +2073,27 @@ declare function vibrate(args?: AsyncVoidCallback & TypeOf<typeof vibrateArgs[0]
|
|
|
2072
2073
|
|
|
2073
2074
|
declare const openWebviewArgs: ZodObject<{
|
|
2074
2075
|
url: ZodString;
|
|
2076
|
+
config: ZodOptional<ZodObject<{
|
|
2077
|
+
style: ZodOptional<ZodDefault<ZodEnum<["bottomSheet", "normal"]>>>;
|
|
2078
|
+
leftButton: ZodOptional<ZodDefault<ZodEnum<["back", "none"]>>>;
|
|
2079
|
+
}, "strip", ZodTypeAny, {
|
|
2080
|
+
style?: "normal" | "bottomSheet" | undefined;
|
|
2081
|
+
leftButton?: "none" | "back" | undefined;
|
|
2082
|
+
}, {
|
|
2083
|
+
style?: "normal" | "bottomSheet" | undefined;
|
|
2084
|
+
leftButton?: "none" | "back" | undefined;
|
|
2085
|
+
}>>;
|
|
2075
2086
|
}, "strip", ZodTypeAny, {
|
|
2087
|
+
config?: {
|
|
2088
|
+
style?: "normal" | "bottomSheet" | undefined;
|
|
2089
|
+
leftButton?: "none" | "back" | undefined;
|
|
2090
|
+
} | undefined;
|
|
2076
2091
|
url: string;
|
|
2077
2092
|
}, {
|
|
2093
|
+
config?: {
|
|
2094
|
+
style?: "normal" | "bottomSheet" | undefined;
|
|
2095
|
+
leftButton?: "none" | "back" | undefined;
|
|
2096
|
+
} | undefined;
|
|
2078
2097
|
url: string;
|
|
2079
2098
|
}>[];
|
|
2080
2099
|
declare function openWebview(args: AsyncCallback<OpenWebviewReturns> & TypeOf<typeof openWebviewArgs[0]>): Promise<void>;
|
|
@@ -2306,13 +2325,13 @@ declare const configAppViewArgs: ZodObject<{
|
|
|
2306
2325
|
textAlign: ZodOptional<ZodDefault<ZodEnum<["left", "center"]>>>;
|
|
2307
2326
|
}, "strip", ZodTypeAny, {
|
|
2308
2327
|
title?: string | undefined;
|
|
2309
|
-
hide?: boolean | undefined;
|
|
2310
2328
|
leftButton?: "none" | "back" | undefined;
|
|
2329
|
+
hide?: boolean | undefined;
|
|
2311
2330
|
textAlign?: "left" | "center" | undefined;
|
|
2312
2331
|
}, {
|
|
2313
2332
|
title?: string | undefined;
|
|
2314
|
-
hide?: boolean | undefined;
|
|
2315
2333
|
leftButton?: "none" | "back" | undefined;
|
|
2334
|
+
hide?: boolean | undefined;
|
|
2316
2335
|
textAlign?: "left" | "center" | undefined;
|
|
2317
2336
|
}>>;
|
|
2318
2337
|
statusBarType: ZodOptional<ZodEnum<["normal", "hidden", "transparent"]>>;
|
|
@@ -2323,8 +2342,8 @@ declare const configAppViewArgs: ZodObject<{
|
|
|
2323
2342
|
headerColor?: string | undefined;
|
|
2324
2343
|
actionBar?: {
|
|
2325
2344
|
title?: string | undefined;
|
|
2326
|
-
hide?: boolean | undefined;
|
|
2327
2345
|
leftButton?: "none" | "back" | undefined;
|
|
2346
|
+
hide?: boolean | undefined;
|
|
2328
2347
|
textAlign?: "left" | "center" | undefined;
|
|
2329
2348
|
} | undefined;
|
|
2330
2349
|
statusBarType?: "hidden" | "transparent" | "normal" | undefined;
|
|
@@ -2335,8 +2354,8 @@ declare const configAppViewArgs: ZodObject<{
|
|
|
2335
2354
|
headerColor?: string | undefined;
|
|
2336
2355
|
actionBar?: {
|
|
2337
2356
|
title?: string | undefined;
|
|
2338
|
-
hide?: boolean | undefined;
|
|
2339
2357
|
leftButton?: "none" | "back" | undefined;
|
|
2358
|
+
hide?: boolean | undefined;
|
|
2340
2359
|
textAlign?: "left" | "center" | undefined;
|
|
2341
2360
|
} | undefined;
|
|
2342
2361
|
statusBarType?: "hidden" | "transparent" | "normal" | undefined;
|
|
@@ -2375,6 +2394,15 @@ declare function requestSendNotification(args?: AsyncVoidCallback): Promise<void
|
|
|
2375
2394
|
|
|
2376
2395
|
declare function addRating(args?: AsyncVoidCallback): Promise<void>;
|
|
2377
2396
|
|
|
2397
|
+
declare const interactOAArgs$1: ZodObject<{
|
|
2398
|
+
oaId: ZodString;
|
|
2399
|
+
}, "strip", ZodTypeAny, {
|
|
2400
|
+
oaId: string;
|
|
2401
|
+
}, {
|
|
2402
|
+
oaId: string;
|
|
2403
|
+
}>[];
|
|
2404
|
+
declare function interactOA(args: AsyncVoidCallback & TypeOf<(typeof interactOAArgs$1)[0]>): Promise<void>;
|
|
2405
|
+
|
|
2378
2406
|
declare const interactOAArgs: ZodObject<{
|
|
2379
2407
|
oaId: ZodString;
|
|
2380
2408
|
}, "strip", ZodTypeAny, {
|
|
@@ -2382,7 +2410,7 @@ declare const interactOAArgs: ZodObject<{
|
|
|
2382
2410
|
}, {
|
|
2383
2411
|
oaId: string;
|
|
2384
2412
|
}>[];
|
|
2385
|
-
declare function
|
|
2413
|
+
declare function checkIsAllowedInteractWithOA(args: AsyncVoidCallback & TypeOf<(typeof interactOAArgs)[0]>): Promise<void>;
|
|
2386
2414
|
|
|
2387
2415
|
declare const otherApis: {
|
|
2388
2416
|
login: typeof login;
|
|
@@ -2463,6 +2491,7 @@ declare const otherApis: {
|
|
|
2463
2491
|
addRating: typeof addRating;
|
|
2464
2492
|
interactOA: typeof interactOA;
|
|
2465
2493
|
interactOa: typeof interactOA;
|
|
2494
|
+
isAllowedInteractWithOA: typeof checkIsAllowedInteractWithOA;
|
|
2466
2495
|
};
|
|
2467
2496
|
|
|
2468
2497
|
declare const payment: {
|
|
@@ -2471,4 +2500,4 @@ declare const payment: {
|
|
|
2471
2500
|
createOrderIAP: typeof createOrderIAP;
|
|
2472
2501
|
};
|
|
2473
2502
|
|
|
2474
|
-
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, SystemInfo, TextAlignType, VibrateType, addRating, checkStateBioAuthentication, checkTransaction, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, keepScreen, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|
|
2503
|
+
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, SystemInfo, TextAlignType, VibrateType, addRating, checkStateBioAuthentication, checkTransaction, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|