zmp-sdk 2.26.0-rc.1 → 2.26.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/createOrder.js +1 -1
- package/apis/apis/index.js +1 -1
- package/apis/apis/minimizeApp.js +1 -0
- package/apis/apis/openMiniApp.js +1 -1
- package/apis/common/apis/general/checkStateBioAuthentication.js +1 -1
- package/apis/common/apis/general/minimizeApp.js +1 -0
- package/apis/common/apis/general/openMiniApp.js +1 -1
- package/apis/common/apis/general/storage/index.js +1 -1
- package/apis/common/apis/general/view.js +1 -1
- package/apis/common/call/zaloNative.js +1 -1
- package/apis/common/token.js +1 -1
- package/apis/common/utils.js +1 -1
- package/apis/constants.js +1 -1
- package/apis/index.d.ts +10 -5
- package/apis/index.es.js +1 -1
- package/apis/index.js +1 -1
- package/apis/package.json.js +1 -1
- package/browser.min.js +1 -1
- package/index.d.ts +17 -5
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/index.umd.js +2 -2
- package/package.json +1 -1
- package/zmp-sdk-v2.26.0-rc.0.tgz +0 -0
- package/zmp-sdk-v2.25.0-alpha.8.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -272,6 +272,12 @@ type NativeCallBackData = {
|
|
|
272
272
|
action: string;
|
|
273
273
|
data: any;
|
|
274
274
|
};
|
|
275
|
+
type LogData = {
|
|
276
|
+
action: string;
|
|
277
|
+
error: number;
|
|
278
|
+
message: string;
|
|
279
|
+
data: any;
|
|
280
|
+
};
|
|
275
281
|
|
|
276
282
|
type AsyncCallbackFailObject = {
|
|
277
283
|
code: number;
|
|
@@ -2003,11 +2009,14 @@ declare function saveImageToGallery(args: AsyncVoidCallback & TypeOf<typeof save
|
|
|
2003
2009
|
|
|
2004
2010
|
declare const openMiniAppArgs: ZodObject<{
|
|
2005
2011
|
appId: ZodString;
|
|
2012
|
+
path: ZodOptional<ZodString>;
|
|
2006
2013
|
params: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2007
2014
|
}, "strip", ZodTypeAny, {
|
|
2015
|
+
path?: string | undefined;
|
|
2008
2016
|
params?: Record<string, string> | undefined;
|
|
2009
2017
|
appId: string;
|
|
2010
2018
|
}, {
|
|
2019
|
+
path?: string | undefined;
|
|
2011
2020
|
params?: Record<string, string> | undefined;
|
|
2012
2021
|
appId: string;
|
|
2013
2022
|
}>[];
|
|
@@ -2194,21 +2203,21 @@ declare const createOrderArgs: ZodObject<{
|
|
|
2194
2203
|
item: ZodArray<ZodRecord<ZodString, ZodAny>, "many">;
|
|
2195
2204
|
desc: ZodString;
|
|
2196
2205
|
extradata: ZodOptional<ZodAny>;
|
|
2197
|
-
method: ZodOptional<ZodEnum<["MOMO", "ZALOPAY", "MOMO_SANDBOX", "ZALOPAY_SANDBOX", "CC", "CC_SANDBOX", "ATM", "ATM_SANDBOX"
|
|
2206
|
+
method: ZodOptional<ZodEnum<["MOMO", "ZALOPAY", "MOMO_SANDBOX", "ZALOPAY_SANDBOX", "CC", "CC_SANDBOX", "ATM", "ATM_SANDBOX"]>>;
|
|
2198
2207
|
}, "strip", ZodTypeAny, {
|
|
2199
|
-
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" |
|
|
2208
|
+
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | undefined;
|
|
2200
2209
|
extradata?: any;
|
|
2201
2210
|
desc: string;
|
|
2202
2211
|
amount: string | number;
|
|
2203
2212
|
item: Record<string, any>[];
|
|
2204
2213
|
}, {
|
|
2205
|
-
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" |
|
|
2214
|
+
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | undefined;
|
|
2206
2215
|
extradata?: any;
|
|
2207
2216
|
desc: string;
|
|
2208
2217
|
amount: string | number;
|
|
2209
2218
|
item: Record<string, any>[];
|
|
2210
2219
|
}>[];
|
|
2211
|
-
declare function createOrder(args: AsyncCallback<CreateOrderReturns> & TypeOf<
|
|
2220
|
+
declare function createOrder(args: AsyncCallback<CreateOrderReturns> & TypeOf<typeof createOrderArgs[0]>): Promise<CreateOrderReturns>;
|
|
2212
2221
|
|
|
2213
2222
|
declare const checkTransactionArgs: ZodObject<{
|
|
2214
2223
|
data: ZodUnion<[ZodString, ZodRecord<ZodString, ZodString>]>;
|
|
@@ -2313,6 +2322,8 @@ declare const createOrderIAPArgs: ZodObject<{
|
|
|
2313
2322
|
}>[];
|
|
2314
2323
|
declare function createOrderIAP(args: AsyncCallback<CreateOrderIAPReturns> & TypeOf<typeof createOrderIAPArgs[0]>): Promise<CreateOrderIAPReturns>;
|
|
2315
2324
|
|
|
2325
|
+
declare function minimizeApp(args?: AsyncVoidCallback): Promise<void>;
|
|
2326
|
+
|
|
2316
2327
|
declare const otherApis: {
|
|
2317
2328
|
login: typeof login;
|
|
2318
2329
|
getAccessToken: typeof getAccessToken;
|
|
@@ -2384,6 +2395,7 @@ declare const otherApis: {
|
|
|
2384
2395
|
setIOSBottomSafeArea: typeof setIOSBottomSafeArea;
|
|
2385
2396
|
setStatusBar: typeof setStatusBar;
|
|
2386
2397
|
configAppView: typeof configAppView;
|
|
2398
|
+
minimizeApp: typeof minimizeApp;
|
|
2387
2399
|
};
|
|
2388
2400
|
|
|
2389
2401
|
declare const payment: {
|
|
@@ -2392,4 +2404,4 @@ declare const payment: {
|
|
|
2392
2404
|
createOrderIAP: typeof createOrderIAP;
|
|
2393
2405
|
};
|
|
2394
2406
|
|
|
2395
|
-
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, 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, VibrateType, checkStateBioAuthentication, checkTransaction, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, events, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, keepScreen, login, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openMediaPicker, openMiniApp, openOutApp, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, removeStorage, requestCameraPermission, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|
|
2407
|
+
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, VibrateType, checkStateBioAuthentication, checkTransaction, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, events, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, keepScreen, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openMediaPicker, openMiniApp, openOutApp, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, removeStorage, requestCameraPermission, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|