zmp-sdk 2.36.0 → 2.37.0-rc.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/ads/display.js +1 -0
- package/apis/apis/ads/load.js +1 -0
- package/apis/apis/ads/refresh.js +1 -0
- package/apis/apis/ads/setup.js +1 -0
- package/apis/apis/adtimaAd/display.js +1 -0
- package/apis/apis/adtimaAd/load.js +1 -0
- package/apis/apis/adtimaAd/refresh.js +1 -0
- package/apis/apis/adtimaAd/setup.js +1 -0
- package/apis/apis/advertising/display.js +1 -0
- package/apis/apis/advertising/index.js +1 -0
- package/apis/apis/advertising/load.js +1 -0
- package/apis/apis/advertising/refresh.js +1 -0
- package/apis/apis/advertising/setup.js +1 -0
- package/apis/common/apis/general/adtimaAd.js +1 -0
- package/apis/common/utils.js +1 -1
- package/apis/index.d.ts +48 -1
- 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 +52 -1
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +3 -3
- package/package.json +1 -1
- package/zmp-sdk-v2.36.0.tgz +0 -0
- package/zmp-sdk-v2.35.1.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -2453,6 +2453,53 @@ declare function getUserID(args?: AsyncCallback<string>): Promise<string>;
|
|
|
2453
2453
|
|
|
2454
2454
|
declare function getIDToken(args?: AsyncCallback<string>): Promise<string>;
|
|
2455
2455
|
|
|
2456
|
+
declare function setupAd(args: AsyncCallback): Promise<void>;
|
|
2457
|
+
|
|
2458
|
+
declare const loadAdArgs: ZodObject<{
|
|
2459
|
+
ids: ZodUnion<[ZodString, ZodArray<ZodString, "many">]>;
|
|
2460
|
+
config: ZodOptional<ZodObject<{
|
|
2461
|
+
display: ZodOptional<ZodBoolean>;
|
|
2462
|
+
onClose: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
|
|
2463
|
+
}, "strip", ZodTypeAny, {
|
|
2464
|
+
display?: boolean | undefined;
|
|
2465
|
+
onClose?: ((...args: unknown[]) => unknown) | undefined;
|
|
2466
|
+
}, {
|
|
2467
|
+
display?: boolean | undefined;
|
|
2468
|
+
onClose?: ((...args: unknown[]) => unknown) | undefined;
|
|
2469
|
+
}>>;
|
|
2470
|
+
}, "strip", ZodTypeAny, {
|
|
2471
|
+
config?: {
|
|
2472
|
+
display?: boolean | undefined;
|
|
2473
|
+
onClose?: ((...args: unknown[]) => unknown) | undefined;
|
|
2474
|
+
} | undefined;
|
|
2475
|
+
ids: string | string[];
|
|
2476
|
+
}, {
|
|
2477
|
+
config?: {
|
|
2478
|
+
display?: boolean | undefined;
|
|
2479
|
+
onClose?: ((...args: unknown[]) => unknown) | undefined;
|
|
2480
|
+
} | undefined;
|
|
2481
|
+
ids: string | string[];
|
|
2482
|
+
}>[];
|
|
2483
|
+
declare function loadAd(args: AsyncCallback & TypeOf<(typeof loadAdArgs)[0]>): Promise<void>;
|
|
2484
|
+
|
|
2485
|
+
declare const displayAdArgs: ZodObject<{
|
|
2486
|
+
id: ZodString;
|
|
2487
|
+
}, "strip", ZodTypeAny, {
|
|
2488
|
+
id: string;
|
|
2489
|
+
}, {
|
|
2490
|
+
id: string;
|
|
2491
|
+
}>[];
|
|
2492
|
+
declare function displayAd(args: AsyncCallback & TypeOf<(typeof displayAdArgs)[0]>): Promise<void>;
|
|
2493
|
+
|
|
2494
|
+
declare const refreshAdArgs: ZodOptional<ZodObject<{
|
|
2495
|
+
id: ZodOptional<ZodString>;
|
|
2496
|
+
}, "strip", ZodTypeAny, {
|
|
2497
|
+
id?: string | undefined;
|
|
2498
|
+
}, {
|
|
2499
|
+
id?: string | undefined;
|
|
2500
|
+
}>>[];
|
|
2501
|
+
declare function refreshAd(args: AsyncCallback & TypeOf<(typeof refreshAdArgs)[0]>): Promise<void>;
|
|
2502
|
+
|
|
2456
2503
|
declare const otherApis: {
|
|
2457
2504
|
Events: typeof Events;
|
|
2458
2505
|
EventName: typeof Events;
|
|
@@ -2540,6 +2587,10 @@ declare const otherApis: {
|
|
|
2540
2587
|
checkZaloCameraPermission: typeof checkZaloCameraPermission;
|
|
2541
2588
|
getUserID: typeof getUserID;
|
|
2542
2589
|
getIDToken: typeof getIDToken;
|
|
2590
|
+
setupAd: typeof setupAd;
|
|
2591
|
+
loadAd: typeof loadAd;
|
|
2592
|
+
displayAd: typeof displayAd;
|
|
2593
|
+
refreshAd: typeof refreshAd;
|
|
2543
2594
|
};
|
|
2544
2595
|
declare const payment: {
|
|
2545
2596
|
createOrder: typeof createOrder;
|
|
@@ -2547,4 +2598,4 @@ declare const payment: {
|
|
|
2547
2598
|
createOrderIAP: typeof createOrderIAP;
|
|
2548
2599
|
};
|
|
2549
2600
|
|
|
2550
|
-
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, AuthenScopeType, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, 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, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, 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, 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 };
|
|
2601
|
+
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, AuthenScopeType, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, 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, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, 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, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|