zmp-sdk 2.30.4 → 2.31.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/index.d.ts CHANGED
@@ -386,6 +386,9 @@ type RequestCameraPermissionReturns = {
386
386
  userAllow: boolean;
387
387
  message: string;
388
388
  };
389
+ type CheckZaloCameraPermissionReturns = {
390
+ userAllow: boolean;
391
+ };
389
392
  type OpenBioAuthenticationReturns = {
390
393
  code: number;
391
394
  message: string;
@@ -469,6 +472,12 @@ type CheckTransactionReturns = {
469
472
  type CreateOrderIAPReturns = {
470
473
  orderId: string;
471
474
  };
475
+ type AuthenResponse = {
476
+ [key: string]: boolean;
477
+ };
478
+ type GetSettingReturn = {
479
+ authSetting: AuthenResponse;
480
+ };
472
481
 
473
482
  declare function login(args?: AsyncCallback<string>): Promise<string>;
474
483
 
@@ -2368,15 +2377,18 @@ declare const createOrderIAPArgs: ZodObject<{
2368
2377
  productId: ZodString;
2369
2378
  payType: ZodOptional<ZodEnum<["ONETIME", "SUBSCRIPTION"]>>;
2370
2379
  prorationMode: ZodOptional<ZodDefault<ZodEnum<["DEFERRED", "IMMEDIATE_AND_CHARGE_FULL_PRICE"]>>>;
2380
+ utm: ZodOptional<ZodString>;
2371
2381
  method: ZodOptional<ZodEnum<["IAP", "IAP_SANDBOX"]>>;
2372
2382
  }, "strip", ZodTypeAny, {
2373
2383
  method?: "IAP" | "IAP_SANDBOX" | undefined;
2374
2384
  payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
2385
+ utm?: string | undefined;
2375
2386
  prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
2376
2387
  productId: string;
2377
2388
  }, {
2378
2389
  method?: "IAP" | "IAP_SANDBOX" | undefined;
2379
2390
  payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
2391
+ utm?: string | undefined;
2380
2392
  prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
2381
2393
  productId: string;
2382
2394
  }>[];
@@ -2412,6 +2424,19 @@ declare const interactOAArgs: ZodObject<{
2412
2424
  }>[];
2413
2425
  declare function checkIsAllowedInteractWithOA(args: AsyncVoidCallback & TypeOf<(typeof interactOAArgs)[0]>): Promise<void>;
2414
2426
 
2427
+ declare function getSetting(args?: AsyncCallback<GetSettingReturn>): Promise<GetSettingReturn>;
2428
+
2429
+ declare const authorizeArgs: ZodOptional<ZodObject<{
2430
+ scopes: ZodOptional<ZodArray<ZodString, "many">>;
2431
+ }, "strip", ZodTypeAny, {
2432
+ scopes?: string[] | undefined;
2433
+ }, {
2434
+ scopes?: string[] | undefined;
2435
+ }>>[];
2436
+ declare function authorize(args?: AsyncVoidCallback & TypeOf<(typeof authorizeArgs)[0]>): Promise<AuthenResponse>;
2437
+
2438
+ declare function checkZaloCameraPermission(args?: AsyncCallback<CheckZaloCameraPermissionReturns>): Promise<CheckZaloCameraPermissionReturns>;
2439
+
2415
2440
  declare const otherApis: {
2416
2441
  Events: typeof Events;
2417
2442
  EventName: typeof Events;
@@ -2494,6 +2519,9 @@ declare const otherApis: {
2494
2519
  interactOA: typeof interactOA;
2495
2520
  interactOa: typeof interactOA;
2496
2521
  isAllowedInteractWithOA: typeof checkIsAllowedInteractWithOA;
2522
+ getSetting: typeof getSetting;
2523
+ authorize: typeof authorize;
2524
+ checkZaloCameraPermission: typeof checkZaloCameraPermission;
2497
2525
  };
2498
2526
  declare const payment: {
2499
2527
  createOrder: typeof createOrder;
@@ -2501,4 +2529,4 @@ declare const payment: {
2501
2529
  createOrderIAP: typeof createOrderIAP;
2502
2530
  };
2503
2531
 
2504
- export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, 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 };
2532
+ export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, 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, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, 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 };