zmp-sdk 2.52.2 → 2.53.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/addVoucher.js +1 -0
- package/apis/common/apis/general/addVoucher.js +1 -0
- package/apis/common/apis/general/openProfilePicker.js +1 -1
- package/apis/constants.js +1 -1
- package/apis/index.d.ts +160 -10
- 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 +161 -10
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +3 -3
- package/package.json +1 -2
package/index.d.ts
CHANGED
|
@@ -1426,6 +1426,84 @@ type GetZPITokenReturns = {
|
|
|
1426
1426
|
zpp: string;
|
|
1427
1427
|
zpt: string;
|
|
1428
1428
|
};
|
|
1429
|
+
type VoucherDisplayType = "qr_code" | "bar_code";
|
|
1430
|
+
type VoucherActionType = "url" | "phone";
|
|
1431
|
+
type VoucherAction = {
|
|
1432
|
+
/**
|
|
1433
|
+
* Loại CTA hiển thị trên thẻ voucher.
|
|
1434
|
+
*/
|
|
1435
|
+
type: VoucherActionType;
|
|
1436
|
+
/**
|
|
1437
|
+
* URL khi `type=url`, hoặc số điện thoại khi `type=phone`.
|
|
1438
|
+
*/
|
|
1439
|
+
value: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* Nội dung hiển thị trên button CTA; tối đa 15 ký tự.
|
|
1442
|
+
*/
|
|
1443
|
+
cta: string;
|
|
1444
|
+
};
|
|
1445
|
+
type AddVoucherData = {
|
|
1446
|
+
/**
|
|
1447
|
+
* Tên voucher / ưu đãi.
|
|
1448
|
+
*/
|
|
1449
|
+
name: string;
|
|
1450
|
+
/**
|
|
1451
|
+
* Điều kiện áp dụng (chính), hiển thị trên chi tiết vé; tối đa 75 ký tự.
|
|
1452
|
+
*/
|
|
1453
|
+
condition: string;
|
|
1454
|
+
/**
|
|
1455
|
+
* Điều kiện áp dụng chi tiết (phụ).
|
|
1456
|
+
*/
|
|
1457
|
+
conditionDetail?: string;
|
|
1458
|
+
/**
|
|
1459
|
+
* Thời gian bắt đầu hiệu lực, epoch milliseconds.
|
|
1460
|
+
*/
|
|
1461
|
+
validAt?: number;
|
|
1462
|
+
/**
|
|
1463
|
+
* Hạn sử dụng, epoch milliseconds.
|
|
1464
|
+
*/
|
|
1465
|
+
expiredAt: number;
|
|
1466
|
+
/**
|
|
1467
|
+
* Mã voucher; không truyền thì tự sinh QR OA của merchant.
|
|
1468
|
+
*/
|
|
1469
|
+
code?: string;
|
|
1470
|
+
/**
|
|
1471
|
+
* Loại mã hiển thị. Mặc định là `qr_code`.
|
|
1472
|
+
*/
|
|
1473
|
+
display?: VoucherDisplayType;
|
|
1474
|
+
/**
|
|
1475
|
+
* Token để merchant gửi tin nhắn không tốn phí. Lấy từ callback
|
|
1476
|
+
* `onDataReceived` của `showFunctionButtonWidget`.
|
|
1477
|
+
*/
|
|
1478
|
+
interactToken?: string;
|
|
1479
|
+
/**
|
|
1480
|
+
* Tên khách hàng sở hữu; không truyền thì không hiển thị trên vé.
|
|
1481
|
+
*/
|
|
1482
|
+
ownerName?: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* OA ID của merchant trên Zalo.
|
|
1485
|
+
*/
|
|
1486
|
+
merchantOaId: string;
|
|
1487
|
+
/**
|
|
1488
|
+
* Tên OA / thương hiệu phát hành voucher.
|
|
1489
|
+
*/
|
|
1490
|
+
merchantName: string;
|
|
1491
|
+
/**
|
|
1492
|
+
* Logo OA, dùng làm logo hiển thị trên voucher.
|
|
1493
|
+
*/
|
|
1494
|
+
merchantLogoUrl: string;
|
|
1495
|
+
/**
|
|
1496
|
+
* Danh sách CTA hiển thị trên thẻ (tối đa 2).
|
|
1497
|
+
*/
|
|
1498
|
+
actions?: VoucherAction[];
|
|
1499
|
+
};
|
|
1500
|
+
type AddVoucherReturns = {
|
|
1501
|
+
/**
|
|
1502
|
+
* Token để merchant gửi tin nhắn OA cho người dùng; chuỗi rỗng nếu server
|
|
1503
|
+
* không trả về.
|
|
1504
|
+
*/
|
|
1505
|
+
oaMessageToken: string;
|
|
1506
|
+
};
|
|
1429
1507
|
type TempFile = {
|
|
1430
1508
|
/**
|
|
1431
1509
|
* Đường dẫn các temp file đã chọn.
|
|
@@ -3319,16 +3397,20 @@ declare const openProfileArgs: ZodOptional<ZodObject<{
|
|
|
3319
3397
|
/**
|
|
3320
3398
|
* API cho phép ứng dụng mở profile của User hoặc Official Account.
|
|
3321
3399
|
*
|
|
3400
|
+
* Với `oa` và `aliasOA`, màn hình được mở phụ thuộc trạng thái quan tâm của
|
|
3401
|
+
* người dùng với OA đó: chưa quan tâm thì mở profile OA, đã quan tâm thì mở
|
|
3402
|
+
* cửa sổ chat.
|
|
3403
|
+
*
|
|
3322
3404
|
* @minimumVersion 2.5.3
|
|
3323
3405
|
* @zaloOnly Chỉ hoạt động khi chạy bên trong ứng dụng Zalo mobile.
|
|
3324
3406
|
*
|
|
3325
3407
|
* @param {"user" | "oa" | "aliasOA"} type Nhận các giá trị sau:
|
|
3326
3408
|
* - `user`: Mở profile User.
|
|
3327
|
-
* - `oa`: Mở profile OA.
|
|
3328
|
-
* - `aliasOA`:
|
|
3409
|
+
* - `oa`: Mở profile OA, hoặc cửa sổ chat nếu người dùng đã quan tâm OA.
|
|
3410
|
+
* - `aliasOA`: Như `oa`, nhưng field id truyền lên là alias của OA.
|
|
3329
3411
|
* @param {string} id Id của User hoặc OA.
|
|
3330
3412
|
*
|
|
3331
|
-
* @example Mở
|
|
3413
|
+
* @example Mở profile của người dùng:
|
|
3332
3414
|
* ```ts
|
|
3333
3415
|
* await openProfile({
|
|
3334
3416
|
* type: "user",
|
|
@@ -3336,7 +3418,7 @@ declare const openProfileArgs: ZodOptional<ZodObject<{
|
|
|
3336
3418
|
* });
|
|
3337
3419
|
* ```
|
|
3338
3420
|
*
|
|
3339
|
-
* @example Mở profile
|
|
3421
|
+
* @example Mở Official Account (profile hoặc cửa sổ chat, tuỳ trạng thái user có quan tâm hay chưa):
|
|
3340
3422
|
* ```tsx
|
|
3341
3423
|
* await openProfile({
|
|
3342
3424
|
* type: "oa",
|
|
@@ -3500,7 +3582,7 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
3500
3582
|
* const { status, shareType, numberOfUser } = await openPostFeed({
|
|
3501
3583
|
* type: "image",
|
|
3502
3584
|
* data: {
|
|
3503
|
-
* imageUrls: ["
|
|
3585
|
+
* imageUrls: ["https://example.com/image.jpg"],
|
|
3504
3586
|
* },
|
|
3505
3587
|
* });
|
|
3506
3588
|
* ```
|
|
@@ -3512,7 +3594,7 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
3512
3594
|
* data: {
|
|
3513
3595
|
* link: "http://news.zing.vn/Trung-uong-quyet-dinh-phuong-an-nhan-su-cap-cao-post632739.html",
|
|
3514
3596
|
* title: "Trung ương quyết định phương án nhân sự cấp cao",
|
|
3515
|
-
* thumb: "
|
|
3597
|
+
* thumb: "https://example.com/thumbnail.jpg",
|
|
3516
3598
|
* description: "description",
|
|
3517
3599
|
* },
|
|
3518
3600
|
* });
|
|
@@ -5271,6 +5353,73 @@ declare function requestSendNotification(args?: AsyncVoidCallback): Promise<void
|
|
|
5271
5353
|
*/
|
|
5272
5354
|
declare function addRating(args?: AsyncVoidCallback): Promise<void>;
|
|
5273
5355
|
|
|
5356
|
+
/**
|
|
5357
|
+
* Lưu voucher vào Ví QR của người dùng.
|
|
5358
|
+
*
|
|
5359
|
+
* API này gửi dữ liệu voucher từ Mini App về server trung gian. Server trung gian
|
|
5360
|
+
* chịu trách nhiệm đăng nhập Ví QR, mã hoá dữ liệu bằng `secureKey`, sau đó trả về
|
|
5361
|
+
* deeplink thêm thẻ vào Ví QR. SDK sẽ tự mở deeplink này bằng `openWebview` để đưa
|
|
5362
|
+
* người dùng tới màn hình thêm thẻ; deeplink không được trả về cho bên gọi, chỉ
|
|
5363
|
+
* trả về `oaMessageToken`.
|
|
5364
|
+
*
|
|
5365
|
+
* @zaloOnly Chỉ hoạt động khi chạy bên trong ứng dụng Zalo mobile.
|
|
5366
|
+
*
|
|
5367
|
+
* @param {string} name Tên voucher / ưu đãi.
|
|
5368
|
+
* @param {string} condition Điều kiện áp dụng (chính), hiển thị trên chi tiết vé;
|
|
5369
|
+
* tối đa 75 ký tự.
|
|
5370
|
+
* @param {number} expiredAt Hạn sử dụng, epoch milliseconds.
|
|
5371
|
+
* @param {string} merchantOaId OA ID của merchant trên Zalo.
|
|
5372
|
+
* @param {string} merchantName Tên OA / thương hiệu phát hành voucher.
|
|
5373
|
+
* @param {string} merchantLogoUrl Logo OA, dùng làm logo hiển thị trên voucher.
|
|
5374
|
+
* @param {string} [conditionDetail] Điều kiện áp dụng chi tiết (phụ).
|
|
5375
|
+
* @param {number} [validAt] Thời gian bắt đầu hiệu lực, epoch milliseconds.
|
|
5376
|
+
* @param {string} [code] Mã voucher; không truyền thì tự sinh QR OA của merchant.
|
|
5377
|
+
* @param {"qr_code" | "bar_code"} [display="qr_code"] Loại mã hiển thị.
|
|
5378
|
+
* @param {string} [ownerName] Tên khách hàng sở hữu; không truyền thì không hiển thị trên vé.
|
|
5379
|
+
* @param {string} [interactToken] Token để merchant gửi tin nhắn không tốn phí.
|
|
5380
|
+
* Lấy từ callback `onDataReceived` của {@link showFunctionButtonWidget} khi
|
|
5381
|
+
* người dùng nhấn vào Function Button Widget.
|
|
5382
|
+
* @param {VoucherAction[]} [actions] Danh sách CTA hiển thị trên thẻ (tối đa 2);
|
|
5383
|
+
* nội dung button (`cta`) tối đa 15 ký tự.
|
|
5384
|
+
*
|
|
5385
|
+
* @returns {Promise<AddVoucherReturns>} Promise resolve khi tạo thẻ thành công và
|
|
5386
|
+
* deeplink đã được mở, trả về `oaMessageToken` (chuỗi rỗng nếu server không
|
|
5387
|
+
* trả về); reject kèm mã lỗi từ server nếu thất bại.
|
|
5388
|
+
*
|
|
5389
|
+
* @example Thêm voucher vào Ví QR:
|
|
5390
|
+
* ```ts
|
|
5391
|
+
* await addVoucher({
|
|
5392
|
+
* name: "Giảm 50% giá trị đơn hàng",
|
|
5393
|
+
* condition: "Áp dụng cho hóa đơn trên 200.000đ",
|
|
5394
|
+
* expiredAt: 1743440399000,
|
|
5395
|
+
* merchantOaId: "2646373759294038927",
|
|
5396
|
+
* merchantName: "The Face Shop",
|
|
5397
|
+
* merchantLogoUrl: "https://static.example.com/logo.png",
|
|
5398
|
+
* });
|
|
5399
|
+
* ```
|
|
5400
|
+
*
|
|
5401
|
+
* @example Gửi kèm `interactToken` lấy từ Function Button Widget:
|
|
5402
|
+
* ```ts
|
|
5403
|
+
* showFunctionButtonWidget({
|
|
5404
|
+
* id: "orderButton",
|
|
5405
|
+
* type: "ORDER",
|
|
5406
|
+
* text: "Tạo đơn hàng",
|
|
5407
|
+
* onDataReceived: async (interactToken) => {
|
|
5408
|
+
* await addVoucher({
|
|
5409
|
+
* name: "Giảm 50% giá trị đơn hàng",
|
|
5410
|
+
* condition: "Áp dụng cho hóa đơn trên 200.000đ",
|
|
5411
|
+
* expiredAt: 1743440399000,
|
|
5412
|
+
* merchantOaId: "2646373759294038927",
|
|
5413
|
+
* merchantName: "The Face Shop",
|
|
5414
|
+
* merchantLogoUrl: "https://static.example.com/logo.png",
|
|
5415
|
+
* interactToken,
|
|
5416
|
+
* });
|
|
5417
|
+
* },
|
|
5418
|
+
* });
|
|
5419
|
+
* ```
|
|
5420
|
+
*/
|
|
5421
|
+
declare function addVoucher(args: AsyncCallback<AddVoucherReturns> & AddVoucherData): Promise<AddVoucherReturns>;
|
|
5422
|
+
|
|
5274
5423
|
declare const interactOAArgs$1: ZodObject<{
|
|
5275
5424
|
oaId: ZodString;
|
|
5276
5425
|
}, "strip", ZodTypeAny, {
|
|
@@ -5789,7 +5938,8 @@ type ShowFunctionButtonWidgetArgs = Omit<ShowFunctionButtonWidgetValidatedArgs,
|
|
|
5789
5938
|
onError?: FunctionButtonWidgetOnError;
|
|
5790
5939
|
};
|
|
5791
5940
|
/**
|
|
5792
|
-
* Widget Function Button: Khi người dùng nhấn vào button này, Mini App sẽ nhận được 1 interact token
|
|
5941
|
+
* Widget Function Button: Khi người dùng nhấn vào button này, Mini App sẽ nhận được 1 interact token (có giá trị trong 1 giờ).
|
|
5942
|
+
* Từ phiên bản `2.52.2` trở lên, `showFunctionButtonWidget` hỗ trợ hiển thị nhiều Widget Function Button trên cùng một trang; mỗi widget cần một element có `id` riêng biệt.
|
|
5793
5943
|
*
|
|
5794
5944
|
* @minimumVersion 2.39.0
|
|
5795
5945
|
* @zaloOnly Chỉ hoạt động khi chạy bên trong ứng dụng Zalo mobile.
|
|
@@ -5814,7 +5964,7 @@ type ShowFunctionButtonWidgetArgs = Omit<ShowFunctionButtonWidgetValidatedArgs,
|
|
|
5814
5964
|
* @param {string} [color="#0068FF"] Màu chủ đạo của widget. Giá trị phải là chuỗi hex.
|
|
5815
5965
|
* @param {string} [textColor="#FFFFFF"] Màu chữ trong button. Giá trị phải là chuỗi hex.
|
|
5816
5966
|
* @param {string} [borderRadius="48px"] Bo góc (bo tròn các góc của button).
|
|
5817
|
-
* @param {(interactToken: string, type: string, context: { callAction: (actionName: string, actionData: any) => void }) => void} [onDataReceived] Callback được gọi khi người dùng nhấn vào widget. Callback
|
|
5967
|
+
* @param {(interactToken: string, type: string, context: { callAction: (actionName: string, actionData: any) => void }) => void} [onDataReceived] Callback được gọi khi người dùng nhấn vào widget. Callback nhận `interactToken` có giá trị trong 1 giờ, loại widget `type` và `context` chứa hàm `callAction(actionName, actionData)`.
|
|
5818
5968
|
* @param {(error: AppError) => void} [onError] Callback được gọi khi có lỗi xảy ra khi người dùng nhấn vào widget. Callback này chứa `error` là thông tin về lỗi.
|
|
5819
5969
|
*
|
|
5820
5970
|
* @example Hiển thị Widget Function Button:
|
|
@@ -5831,7 +5981,7 @@ type ShowFunctionButtonWidgetArgs = Omit<ShowFunctionButtonWidgetValidatedArgs,
|
|
|
5831
5981
|
* color: "#0068FF",
|
|
5832
5982
|
* textColor: "#FFFFFF",
|
|
5833
5983
|
* borderRadius: "48px",
|
|
5834
|
-
* onDataReceived: (interactToken
|
|
5984
|
+
* onDataReceived: (interactToken) => {
|
|
5835
5985
|
* console.log(interactToken);
|
|
5836
5986
|
* },
|
|
5837
5987
|
* onError: (error) => {
|
|
@@ -6221,6 +6371,7 @@ declare const otherApis: {
|
|
|
6221
6371
|
openGroupList: typeof openGroupList;
|
|
6222
6372
|
requestSendNotification: typeof requestSendNotification;
|
|
6223
6373
|
addRating: typeof addRating;
|
|
6374
|
+
addVoucher: typeof addVoucher;
|
|
6224
6375
|
interactOA: typeof interactOA;
|
|
6225
6376
|
interactOa: typeof interactOA;
|
|
6226
6377
|
isAllowedInteractWithOA: typeof checkIsAllowedInteractWithOA;
|
|
@@ -6287,4 +6438,4 @@ declare const otherApis: {
|
|
|
6287
6438
|
ZMACameraImp: typeof ZMACameraImp;
|
|
6288
6439
|
};
|
|
6289
6440
|
|
|
6290
|
-
export { Action, AndroidBottomNavigationBarType, AppError, AsyncCallback, AsyncCallbackFailObject, AsyncProgressCallback, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, CheckoutKit, CheckoutPopupOpenParams, CheckoutPopupResponseData, CheckoutSDK, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, FileInfo, FunctionProps, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetDeviceInfoReturn, GetFileInfoReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, IsSupportReturns, JumpStatus, KeepScreenReturns, LFSStorage, ListFile, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenProfilePickerType, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PickedProfile, PlatformType, PostFeedType, ProfileInfo, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, SaveFileReturns, ScanNFCType, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TempFile, TextAlignType, UserInfo, VibrateType, ZMACamera, ZMACameraImp, addRating, authorize, checkNFC, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, downloadFile, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getDeviceInfo, getEntrySource, 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, nativeStorage, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openDocument, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, purchase, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, saveVideoToGallery, scanNFC, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showCustomOAWidget, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, trackingManager, unfollowOA, vibrate, viewOAQr };
|
|
6441
|
+
export { Action, AddVoucherData, AddVoucherReturns, AndroidBottomNavigationBarType, AppError, AsyncCallback, AsyncCallbackFailObject, AsyncProgressCallback, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, CheckoutKit, CheckoutPopupOpenParams, CheckoutPopupResponseData, CheckoutSDK, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, FileInfo, FunctionProps, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetDeviceInfoReturn, GetFileInfoReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, IsSupportReturns, JumpStatus, KeepScreenReturns, LFSStorage, ListFile, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenProfilePickerType, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PickedProfile, PlatformType, PostFeedType, ProfileInfo, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, SaveFileReturns, ScanNFCType, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TempFile, TextAlignType, UserInfo, VibrateType, VoucherAction, VoucherActionType, VoucherDisplayType, ZMACamera, ZMACameraImp, addRating, addVoucher, authorize, checkNFC, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, downloadFile, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getDeviceInfo, getEntrySource, 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, nativeStorage, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openDocument, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, purchase, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, saveVideoToGallery, scanNFC, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showCustomOAWidget, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, trackingManager, unfollowOA, vibrate, viewOAQr };
|