zmp-sdk 2.30.0 → 2.30.2
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/clearStorage.js +1 -1
- package/apis/apis/configAppView.js +1 -1
- package/apis/apis/onCallbackData.js +1 -1
- package/apis/apis/onNetworkStatusChange.js +1 -1
- package/apis/apis/startBeaconDiscovery.js +1 -1
- package/apis/common/apis/general/hideKeyboard.js +1 -1
- package/apis/common/apis/general/keepScreen.js +1 -1
- package/apis/common/apis/general/openChat.js +1 -1
- package/apis/common/apis/general/openMiniApp.js +1 -1
- package/apis/common/apis/general/openOutApp.js +1 -1
- package/apis/common/apis/general/openPhone.js +1 -1
- package/apis/common/apis/general/openProfile.js +1 -1
- package/apis/common/apis/general/openSMS.js +1 -1
- package/apis/common/apis/general/openWebview.js +1 -1
- package/apis/common/apis/general/payment/checkTransaction.js +1 -1
- package/apis/common/apis/general/payment/createOrder.js +1 -1
- package/apis/common/apis/general/payment/createOrderIAP.js +1 -1
- package/apis/common/apis/general/requestCameraPermission.js +1 -1
- package/apis/common/apis/general/saveImageToGallery.js +1 -1
- package/apis/common/apis/general/sendDataToPreviousMiniApp.js +1 -1
- package/apis/common/apis/general/showToast.js +1 -1
- package/apis/common/apis/general/startBeaconDiscovery.js +1 -1
- package/apis/common/apis/general/stopBeaconDiscovery.js +1 -1
- package/apis/common/apis/general/storage/nativeStorage.js +1 -1
- package/apis/common/apis/general/unfollowOA.js +1 -1
- package/apis/common/apis/general/vibrate.js +1 -1
- package/apis/common/apis/general/view.js +1 -1
- package/apis/common/apis/general/viewOAQr.js +1 -1
- package/apis/common/call/zaloNative.js +1 -1
- package/apis/common/eventEmitter.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 +53 -53
- package/apis/package.json.js +1 -1
- package/apis/utils/common.js +1 -1
- package/apis/utils/decorator.js +1 -1
- package/apis/utils/query-string.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +59 -59
- 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.30.0.tgz +0 -0
- package/zmp-sdk-v2.28.8.tgz +0 -0
- package/zmp-sdk-v2.29.0.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -216,13 +216,13 @@ declare enum MediaPickerType {
|
|
|
216
216
|
file = 6
|
|
217
217
|
}
|
|
218
218
|
declare enum IAPPayType {
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
"SUBSCRIPTION" = "SUBSCRIPTION",
|
|
220
|
+
"ONETIME" = "ONETIME"
|
|
221
221
|
}
|
|
222
222
|
declare enum ProrationMode {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
"UNKNOW" = 0,
|
|
224
|
+
"DEFERRED" = 1,
|
|
225
|
+
"IMMEDIATE_AND_CHARGE_FULL_PRICE" = 2
|
|
226
226
|
}
|
|
227
227
|
declare enum StatusBarType {
|
|
228
228
|
normal = 1,
|
|
@@ -259,7 +259,7 @@ type Action<T> = {
|
|
|
259
259
|
whiteList?: boolean;
|
|
260
260
|
haveCallback?: boolean;
|
|
261
261
|
errorList?: {
|
|
262
|
-
[
|
|
262
|
+
[L in PlatformType]?: {
|
|
263
263
|
[code: string]: {
|
|
264
264
|
mapTo: {
|
|
265
265
|
code: number;
|
|
@@ -1427,7 +1427,7 @@ declare const setNavigationBarTitleArgs: ZodOptional<ZodObject<{
|
|
|
1427
1427
|
}, {
|
|
1428
1428
|
title: string;
|
|
1429
1429
|
}>>[];
|
|
1430
|
-
declare function setNavigationBarTitle(args: AsyncVoidCallback & TypeOf<typeof setNavigationBarTitleArgs[0]>): Promise<void>;
|
|
1430
|
+
declare function setNavigationBarTitle(args: AsyncVoidCallback & TypeOf<(typeof setNavigationBarTitleArgs)[0]>): Promise<void>;
|
|
1431
1431
|
|
|
1432
1432
|
declare const setNavigationBarColorArgs: ZodOptional<ZodObject<{
|
|
1433
1433
|
color: ZodString;
|
|
@@ -1442,7 +1442,7 @@ declare const setNavigationBarColorArgs: ZodOptional<ZodObject<{
|
|
|
1442
1442
|
statusBarColor?: string | undefined;
|
|
1443
1443
|
color: string;
|
|
1444
1444
|
}>>[];
|
|
1445
|
-
declare function setNavigationBarColor(args: AsyncVoidCallback & TypeOf<typeof setNavigationBarColorArgs[0]>): Promise<void>;
|
|
1445
|
+
declare function setNavigationBarColor(args: AsyncVoidCallback & TypeOf<(typeof setNavigationBarColorArgs)[0]>): Promise<void>;
|
|
1446
1446
|
|
|
1447
1447
|
declare const setNavigationBarLeftButtonArgs: ZodOptional<ZodObject<{
|
|
1448
1448
|
type: ZodEnum<["none", "back", "home", "both"]>;
|
|
@@ -1451,7 +1451,7 @@ declare const setNavigationBarLeftButtonArgs: ZodOptional<ZodObject<{
|
|
|
1451
1451
|
}, {
|
|
1452
1452
|
type: "none" | "home" | "both" | "back";
|
|
1453
1453
|
}>>[];
|
|
1454
|
-
declare function setNavigationBarLeftButton(args: AsyncVoidCallback & TypeOf<typeof setNavigationBarLeftButtonArgs[0]>): Promise<void>;
|
|
1454
|
+
declare function setNavigationBarLeftButton(args: AsyncVoidCallback & TypeOf<(typeof setNavigationBarLeftButtonArgs)[0]>): Promise<void>;
|
|
1455
1455
|
|
|
1456
1456
|
declare const setStorageArgs: ZodOptional<ZodObject<{
|
|
1457
1457
|
data: ZodRecord<ZodString, ZodAny>;
|
|
@@ -1460,7 +1460,7 @@ declare const setStorageArgs: ZodOptional<ZodObject<{
|
|
|
1460
1460
|
}, {
|
|
1461
1461
|
data: Record<string, any>;
|
|
1462
1462
|
}>>[];
|
|
1463
|
-
declare function setStorage(args: AsyncCallback<SetStorageReturns> & TypeOf<typeof setStorageArgs[0]>): Promise<SetStorageReturns>;
|
|
1463
|
+
declare function setStorage(args: AsyncCallback<SetStorageReturns> & TypeOf<(typeof setStorageArgs)[0]>): Promise<SetStorageReturns>;
|
|
1464
1464
|
|
|
1465
1465
|
declare const getStorageArgs: ZodOptional<ZodObject<{
|
|
1466
1466
|
keys: ZodArray<ZodString, "many">;
|
|
@@ -1469,7 +1469,7 @@ declare const getStorageArgs: ZodOptional<ZodObject<{
|
|
|
1469
1469
|
}, {
|
|
1470
1470
|
keys: string[];
|
|
1471
1471
|
}>>[];
|
|
1472
|
-
declare function getStorage(args: AsyncCallback<GetStorageReturns> & TypeOf<typeof getStorageArgs[0]>): Promise<GetStorageReturns>;
|
|
1472
|
+
declare function getStorage(args: AsyncCallback<GetStorageReturns> & TypeOf<(typeof getStorageArgs)[0]>): Promise<GetStorageReturns>;
|
|
1473
1473
|
|
|
1474
1474
|
declare function getStorageInfo(args?: AsyncCallback<StorageInfo>): Promise<StorageInfo>;
|
|
1475
1475
|
|
|
@@ -1480,7 +1480,7 @@ declare const removeStorageArgs: ZodOptional<ZodObject<{
|
|
|
1480
1480
|
}, {
|
|
1481
1481
|
keys: string[];
|
|
1482
1482
|
}>>[];
|
|
1483
|
-
declare function removeStorage(args: AsyncCallback<RemoveStorageReturns> & TypeOf<typeof removeStorageArgs[0]>): Promise<RemoveStorageReturns>;
|
|
1483
|
+
declare function removeStorage(args: AsyncCallback<RemoveStorageReturns> & TypeOf<(typeof removeStorageArgs)[0]>): Promise<RemoveStorageReturns>;
|
|
1484
1484
|
|
|
1485
1485
|
declare const clearStorageArgs: ZodOptional<ZodObject<{
|
|
1486
1486
|
prefix: ZodOptional<ZodString>;
|
|
@@ -1489,7 +1489,7 @@ declare const clearStorageArgs: ZodOptional<ZodObject<{
|
|
|
1489
1489
|
}, {
|
|
1490
1490
|
prefix?: string | undefined;
|
|
1491
1491
|
}>>[];
|
|
1492
|
-
declare function clearStorage(args: AsyncVoidCallback & TypeOf<typeof clearStorageArgs[0]>): Promise<void>;
|
|
1492
|
+
declare function clearStorage(args: AsyncVoidCallback & TypeOf<(typeof clearStorageArgs)[0]>): Promise<void>;
|
|
1493
1493
|
|
|
1494
1494
|
declare const getUserInfoArgs: ZodOptional<ZodObject<{
|
|
1495
1495
|
avatarType: ZodOptional<ZodEnum<["small", "normal", "large"]>>;
|
|
@@ -1498,7 +1498,7 @@ declare const getUserInfoArgs: ZodOptional<ZodObject<{
|
|
|
1498
1498
|
}, {
|
|
1499
1499
|
avatarType?: "normal" | "small" | "large" | undefined;
|
|
1500
1500
|
}>>[];
|
|
1501
|
-
declare function getUserInfo(args?: AsyncCallback<GetUserInfoReturns> & TypeOf<typeof getUserInfoArgs[0]>): Promise<GetUserInfoReturns>;
|
|
1501
|
+
declare function getUserInfo(args?: AsyncCallback<GetUserInfoReturns> & TypeOf<(typeof getUserInfoArgs)[0]>): Promise<GetUserInfoReturns>;
|
|
1502
1502
|
|
|
1503
1503
|
declare function getNetworkType(args?: AsyncCallback<GetNetworkTypeReturns>): Promise<GetNetworkTypeReturns>;
|
|
1504
1504
|
|
|
@@ -1512,7 +1512,7 @@ declare const onNetworkStatusChangeArgs: ZodFunction<ZodTuple<[ZodObject<{
|
|
|
1512
1512
|
isConnected: boolean;
|
|
1513
1513
|
networkType: "none" | "unknown" | "wifi" | "cellular";
|
|
1514
1514
|
}>], ZodUnknown>, ZodVoid>[];
|
|
1515
|
-
declare function onNetworkStatusChange(args: TypeOf<typeof onNetworkStatusChangeArgs[0]>): void;
|
|
1515
|
+
declare function onNetworkStatusChange(args: TypeOf<(typeof onNetworkStatusChangeArgs)[0]>): void;
|
|
1516
1516
|
|
|
1517
1517
|
declare const startBeaconDiscoveryArgs: ZodOptional<ZodObject<{
|
|
1518
1518
|
scanningType: ZodOptional<ZodDefault<ZodEffects<ZodNumber, number, number>>>;
|
|
@@ -1610,7 +1610,7 @@ declare const startBeaconDiscoveryArgs: ZodOptional<ZodObject<{
|
|
|
1610
1610
|
}[] | undefined;
|
|
1611
1611
|
scanFromSource?: string | undefined;
|
|
1612
1612
|
}>>[];
|
|
1613
|
-
declare function startBeaconDiscovery(args: AsyncCallback<boolean> & TypeOf<typeof startBeaconDiscoveryArgs[0]>): Promise<boolean>;
|
|
1613
|
+
declare function startBeaconDiscovery(args: AsyncCallback<boolean> & TypeOf<(typeof startBeaconDiscoveryArgs)[0]>): Promise<boolean>;
|
|
1614
1614
|
|
|
1615
1615
|
declare function stopBeaconDiscovery(args: AsyncCallback<boolean>): Promise<boolean>;
|
|
1616
1616
|
|
|
@@ -1636,7 +1636,7 @@ declare const openProfileArgs: ZodOptional<ZodObject<{
|
|
|
1636
1636
|
type: "user" | "oa" | "aliasOA";
|
|
1637
1637
|
id: string;
|
|
1638
1638
|
}>>[];
|
|
1639
|
-
declare function openProfile(args: AsyncVoidCallback & TypeOf<typeof openProfileArgs[0]>): Promise<void>;
|
|
1639
|
+
declare function openProfile(args: AsyncVoidCallback & TypeOf<(typeof openProfileArgs)[0]>): Promise<void>;
|
|
1640
1640
|
|
|
1641
1641
|
declare const openChatArgs: ZodOptional<ZodObject<{
|
|
1642
1642
|
id: ZodString;
|
|
@@ -1657,7 +1657,7 @@ declare const openChatArgs: ZodOptional<ZodObject<{
|
|
|
1657
1657
|
type: "user" | "oa";
|
|
1658
1658
|
id: string;
|
|
1659
1659
|
}>>[];
|
|
1660
|
-
declare function openChat(args: AsyncVoidCallback & TypeOf<typeof openChatArgs[0]>): Promise<void>;
|
|
1660
|
+
declare function openChat(args: AsyncVoidCallback & TypeOf<(typeof openChatArgs)[0]>): Promise<void>;
|
|
1661
1661
|
|
|
1662
1662
|
declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
1663
1663
|
type: ZodEnum<["image"]>;
|
|
@@ -1686,29 +1686,29 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1686
1686
|
thumb: ZodOptional<ZodString>;
|
|
1687
1687
|
description: ZodOptional<ZodDefault<ZodString>>;
|
|
1688
1688
|
}, "strip", ZodTypeAny, {
|
|
1689
|
+
description?: string | undefined;
|
|
1689
1690
|
title?: string | undefined;
|
|
1690
1691
|
thumb?: string | undefined;
|
|
1691
|
-
description?: string | undefined;
|
|
1692
1692
|
link: string;
|
|
1693
1693
|
}, {
|
|
1694
|
+
description?: string | undefined;
|
|
1694
1695
|
title?: string | undefined;
|
|
1695
1696
|
thumb?: string | undefined;
|
|
1696
|
-
description?: string | undefined;
|
|
1697
1697
|
link: string;
|
|
1698
1698
|
}>;
|
|
1699
1699
|
}, "strip", ZodTypeAny, {
|
|
1700
1700
|
data: {
|
|
1701
|
+
description?: string | undefined;
|
|
1701
1702
|
title?: string | undefined;
|
|
1702
1703
|
thumb?: string | undefined;
|
|
1703
|
-
description?: string | undefined;
|
|
1704
1704
|
link: string;
|
|
1705
1705
|
};
|
|
1706
1706
|
type: "link";
|
|
1707
1707
|
}, {
|
|
1708
1708
|
data: {
|
|
1709
|
+
description?: string | undefined;
|
|
1709
1710
|
title?: string | undefined;
|
|
1710
1711
|
thumb?: string | undefined;
|
|
1711
|
-
description?: string | undefined;
|
|
1712
1712
|
link: string;
|
|
1713
1713
|
};
|
|
1714
1714
|
type: "link";
|
|
@@ -1732,7 +1732,7 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1732
1732
|
};
|
|
1733
1733
|
type: "profile";
|
|
1734
1734
|
}>]>[];
|
|
1735
|
-
declare function openPostFeed(args: AsyncCallback<OpenPostFeedReturns> & TypeOf<typeof openPostFeedArgs[0]>): Promise<OpenPostFeedReturns>;
|
|
1735
|
+
declare function openPostFeed(args: AsyncCallback<OpenPostFeedReturns> & TypeOf<(typeof openPostFeedArgs)[0]>): Promise<OpenPostFeedReturns>;
|
|
1736
1736
|
|
|
1737
1737
|
declare const followOAArgs: ZodOptional<ZodObject<{
|
|
1738
1738
|
id: ZodString;
|
|
@@ -1744,7 +1744,7 @@ declare const followOAArgs: ZodOptional<ZodObject<{
|
|
|
1744
1744
|
showDialogConfirm?: boolean | undefined;
|
|
1745
1745
|
id: string;
|
|
1746
1746
|
}>>[];
|
|
1747
|
-
declare function followOA(args: AsyncVoidCallback & TypeOf<typeof followOAArgs[0]>): Promise<void>;
|
|
1747
|
+
declare function followOA(args: AsyncVoidCallback & TypeOf<(typeof followOAArgs)[0]>): Promise<void>;
|
|
1748
1748
|
|
|
1749
1749
|
declare const unfollowOAArgs: ZodOptional<ZodObject<{
|
|
1750
1750
|
id: ZodString;
|
|
@@ -1753,7 +1753,7 @@ declare const unfollowOAArgs: ZodOptional<ZodObject<{
|
|
|
1753
1753
|
}, {
|
|
1754
1754
|
id: string;
|
|
1755
1755
|
}>>[];
|
|
1756
|
-
declare function unfollowOA(args: AsyncVoidCallback & TypeOf<typeof unfollowOAArgs[0]>): Promise<void>;
|
|
1756
|
+
declare function unfollowOA(args: AsyncVoidCallback & TypeOf<(typeof unfollowOAArgs)[0]>): Promise<void>;
|
|
1757
1757
|
|
|
1758
1758
|
declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
1759
1759
|
type: ZodEnum<["image"]>;
|
|
@@ -1898,34 +1898,34 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1898
1898
|
path: ZodOptional<ZodString>;
|
|
1899
1899
|
description: ZodOptional<ZodDefault<ZodString>>;
|
|
1900
1900
|
}, "strip", ZodTypeAny, {
|
|
1901
|
-
path?: string | undefined;
|
|
1902
1901
|
description?: string | undefined;
|
|
1902
|
+
path?: string | undefined;
|
|
1903
1903
|
title: string;
|
|
1904
1904
|
thumbnail: string;
|
|
1905
1905
|
}, {
|
|
1906
|
-
path?: string | undefined;
|
|
1907
1906
|
description?: string | undefined;
|
|
1907
|
+
path?: string | undefined;
|
|
1908
1908
|
title: string;
|
|
1909
1909
|
thumbnail: string;
|
|
1910
1910
|
}>;
|
|
1911
1911
|
}, "strip", ZodTypeAny, {
|
|
1912
1912
|
data: {
|
|
1913
|
-
path?: string | undefined;
|
|
1914
1913
|
description?: string | undefined;
|
|
1914
|
+
path?: string | undefined;
|
|
1915
1915
|
title: string;
|
|
1916
1916
|
thumbnail: string;
|
|
1917
1917
|
};
|
|
1918
1918
|
type: "zmp" | "zmp_deep_link";
|
|
1919
1919
|
}, {
|
|
1920
1920
|
data: {
|
|
1921
|
-
path?: string | undefined;
|
|
1922
1921
|
description?: string | undefined;
|
|
1922
|
+
path?: string | undefined;
|
|
1923
1923
|
title: string;
|
|
1924
1924
|
thumbnail: string;
|
|
1925
1925
|
};
|
|
1926
1926
|
type: "zmp" | "zmp_deep_link";
|
|
1927
1927
|
}>]>[];
|
|
1928
|
-
declare function openShareSheet(args: AsyncCallback<OpenShareSheetReturns> & TypeOf<typeof openShareSheetArgs[0]>): Promise<OpenShareSheetReturns>;
|
|
1928
|
+
declare function openShareSheet(args: AsyncCallback<OpenShareSheetReturns> & TypeOf<(typeof openShareSheetArgs)[0]>): Promise<OpenShareSheetReturns>;
|
|
1929
1929
|
|
|
1930
1930
|
declare function requestCameraPermission(args?: AsyncCallback<RequestCameraPermissionReturns>): Promise<RequestCameraPermissionReturns>;
|
|
1931
1931
|
|
|
@@ -1936,7 +1936,7 @@ declare const createShortcutArgs: ZodOptional<ZodObject<{
|
|
|
1936
1936
|
}, {
|
|
1937
1937
|
params?: Record<string, string> | undefined;
|
|
1938
1938
|
}>>[];
|
|
1939
|
-
declare function createShortcut(args?: AsyncCallback<any> & TypeOf<typeof createShortcutArgs[0]>): Promise<any>;
|
|
1939
|
+
declare function createShortcut(args?: AsyncCallback<any> & TypeOf<(typeof createShortcutArgs)[0]>): Promise<any>;
|
|
1940
1940
|
|
|
1941
1941
|
declare const openBioAuthenticationArgs: ZodOptional<ZodObject<{
|
|
1942
1942
|
secretData: ZodString;
|
|
@@ -1971,7 +1971,7 @@ declare const openBioAuthenticationArgs: ZodOptional<ZodObject<{
|
|
|
1971
1971
|
requireFingerprint?: boolean | undefined;
|
|
1972
1972
|
secretData: string;
|
|
1973
1973
|
}>>[];
|
|
1974
|
-
declare function openBioAuthentication(args: AsyncCallback<OpenBioAuthenticationReturns> & TypeOf<typeof openBioAuthenticationArgs[0]>): Promise<OpenBioAuthenticationReturns>;
|
|
1974
|
+
declare function openBioAuthentication(args: AsyncCallback<OpenBioAuthenticationReturns> & TypeOf<(typeof openBioAuthenticationArgs)[0]>): Promise<OpenBioAuthenticationReturns>;
|
|
1975
1975
|
|
|
1976
1976
|
declare function checkStateBioAuthentication(args?: AsyncCallback<CheckStateBioAuthenticationReturns>): Promise<CheckStateBioAuthenticationReturns>;
|
|
1977
1977
|
|
|
@@ -1982,7 +1982,7 @@ declare const showToastArgs: ZodOptional<ZodObject<{
|
|
|
1982
1982
|
}, {
|
|
1983
1983
|
message: string;
|
|
1984
1984
|
}>>[];
|
|
1985
|
-
declare function showToast(args: AsyncVoidCallback & TypeOf<typeof showToastArgs[0]>): Promise<void>;
|
|
1985
|
+
declare function showToast(args: AsyncVoidCallback & TypeOf<(typeof showToastArgs)[0]>): Promise<void>;
|
|
1986
1986
|
|
|
1987
1987
|
declare function hideKeyboard(args?: AsyncVoidCallback): Promise<void>;
|
|
1988
1988
|
|
|
@@ -1993,7 +1993,7 @@ declare const openPhoneArgs: ZodObject<{
|
|
|
1993
1993
|
}, {
|
|
1994
1994
|
phoneNumber: string;
|
|
1995
1995
|
}>[];
|
|
1996
|
-
declare function openPhone(args: AsyncVoidCallback & TypeOf<typeof openPhoneArgs[0]>): Promise<void>;
|
|
1996
|
+
declare function openPhone(args: AsyncVoidCallback & TypeOf<(typeof openPhoneArgs)[0]>): Promise<void>;
|
|
1997
1997
|
|
|
1998
1998
|
declare const openSMSArgs: ZodObject<{
|
|
1999
1999
|
content: ZodString;
|
|
@@ -2005,7 +2005,7 @@ declare const openSMSArgs: ZodObject<{
|
|
|
2005
2005
|
content: string;
|
|
2006
2006
|
phoneNumber: string;
|
|
2007
2007
|
}>[];
|
|
2008
|
-
declare function openSMS(args: AsyncVoidCallback & TypeOf<typeof openSMSArgs[0]>): Promise<void>;
|
|
2008
|
+
declare function openSMS(args: AsyncVoidCallback & TypeOf<(typeof openSMSArgs)[0]>): Promise<void>;
|
|
2009
2009
|
|
|
2010
2010
|
declare const viewOAQrArgs: ZodObject<{
|
|
2011
2011
|
id: ZodString;
|
|
@@ -2017,7 +2017,7 @@ declare const viewOAQrArgs: ZodObject<{
|
|
|
2017
2017
|
displayName?: string | undefined;
|
|
2018
2018
|
id: string;
|
|
2019
2019
|
}>[];
|
|
2020
|
-
declare function viewOAQr(args: AsyncVoidCallback & TypeOf<typeof viewOAQrArgs[0]>): Promise<void>;
|
|
2020
|
+
declare function viewOAQr(args: AsyncVoidCallback & TypeOf<(typeof viewOAQrArgs)[0]>): Promise<void>;
|
|
2021
2021
|
|
|
2022
2022
|
declare const keepScreenArgs: ZodObject<{
|
|
2023
2023
|
keepScreenOn: ZodBoolean;
|
|
@@ -2026,7 +2026,7 @@ declare const keepScreenArgs: ZodObject<{
|
|
|
2026
2026
|
}, {
|
|
2027
2027
|
keepScreenOn: boolean;
|
|
2028
2028
|
}>[];
|
|
2029
|
-
declare function keepScreen(args: AsyncCallback<KeepScreenReturns> & TypeOf<typeof keepScreenArgs[0]>): Promise<void>;
|
|
2029
|
+
declare function keepScreen(args: AsyncCallback<KeepScreenReturns> & TypeOf<(typeof keepScreenArgs)[0]>): Promise<void>;
|
|
2030
2030
|
|
|
2031
2031
|
declare function onKeepScreen(args?: AsyncVoidCallback): Promise<void>;
|
|
2032
2032
|
|
|
@@ -2042,7 +2042,7 @@ declare const saveImageToGalleryArgs: ZodOptional<ZodObject<{
|
|
|
2042
2042
|
imageUrl?: string | undefined;
|
|
2043
2043
|
imageBase64Data?: string | undefined;
|
|
2044
2044
|
}>>[];
|
|
2045
|
-
declare function saveImageToGallery(args: AsyncVoidCallback & TypeOf<typeof saveImageToGalleryArgs[0]>): Promise<void>;
|
|
2045
|
+
declare function saveImageToGallery(args: AsyncVoidCallback & TypeOf<(typeof saveImageToGalleryArgs)[0]>): Promise<void>;
|
|
2046
2046
|
|
|
2047
2047
|
declare const openMiniAppArgs: ZodObject<{
|
|
2048
2048
|
appId: ZodString;
|
|
@@ -2057,7 +2057,7 @@ declare const openMiniAppArgs: ZodObject<{
|
|
|
2057
2057
|
params?: Record<string, string> | undefined;
|
|
2058
2058
|
appId: string;
|
|
2059
2059
|
}>[];
|
|
2060
|
-
declare function openMiniApp(args: AsyncVoidCallback & TypeOf<typeof openMiniAppArgs[0]>): Promise<void>;
|
|
2060
|
+
declare function openMiniApp(args: AsyncVoidCallback & TypeOf<(typeof openMiniAppArgs)[0]>): Promise<void>;
|
|
2061
2061
|
|
|
2062
2062
|
declare const vibrateArgs: ZodObject<{
|
|
2063
2063
|
type: ZodDefault<ZodEnum<["oneShot"]>>;
|
|
@@ -2069,7 +2069,7 @@ declare const vibrateArgs: ZodObject<{
|
|
|
2069
2069
|
type?: "oneShot" | undefined;
|
|
2070
2070
|
milliseconds?: number | undefined;
|
|
2071
2071
|
}>[];
|
|
2072
|
-
declare function vibrate(args?: AsyncVoidCallback & TypeOf<typeof vibrateArgs[0]>): Promise<void>;
|
|
2072
|
+
declare function vibrate(args?: AsyncVoidCallback & TypeOf<(typeof vibrateArgs)[0]>): Promise<void>;
|
|
2073
2073
|
|
|
2074
2074
|
declare const openWebviewArgs: ZodObject<{
|
|
2075
2075
|
url: ZodString;
|
|
@@ -2096,7 +2096,7 @@ declare const openWebviewArgs: ZodObject<{
|
|
|
2096
2096
|
} | undefined;
|
|
2097
2097
|
url: string;
|
|
2098
2098
|
}>[];
|
|
2099
|
-
declare function openWebview(args: AsyncCallback<OpenWebviewReturns> & TypeOf<typeof openWebviewArgs[0]>): Promise<void>;
|
|
2099
|
+
declare function openWebview(args: AsyncCallback<OpenWebviewReturns> & TypeOf<(typeof openWebviewArgs)[0]>): Promise<void>;
|
|
2100
2100
|
|
|
2101
2101
|
declare function getRouteParams(): Record<string, string>;
|
|
2102
2102
|
|
|
@@ -2109,7 +2109,7 @@ declare const sendDataToPreviousMiniAppArgs: ZodObject<{
|
|
|
2109
2109
|
}, {
|
|
2110
2110
|
data?: any;
|
|
2111
2111
|
}>[];
|
|
2112
|
-
declare function sendDataToPreviousMiniApp(args: AsyncVoidCallback & TypeOf<typeof sendDataToPreviousMiniAppArgs[0]>): Promise<void>;
|
|
2112
|
+
declare function sendDataToPreviousMiniApp(args: AsyncVoidCallback & TypeOf<(typeof sendDataToPreviousMiniAppArgs)[0]>): Promise<void>;
|
|
2113
2113
|
|
|
2114
2114
|
declare function getPhoneNumber(args?: AsyncCallback<GetPhoneNumberReturns>): Promise<GetPhoneNumberReturns>;
|
|
2115
2115
|
|
|
@@ -2120,7 +2120,7 @@ declare const openProfilePickerArgs: ZodObject<{
|
|
|
2120
2120
|
}, {
|
|
2121
2121
|
maxProfile?: number | undefined;
|
|
2122
2122
|
}>[];
|
|
2123
|
-
declare function openProfilePicker(args?: AsyncCallback<OpenProfilePickerReturns> & TypeOf<typeof openProfilePickerArgs[0]>): Promise<OpenProfilePickerReturns>;
|
|
2123
|
+
declare function openProfilePicker(args?: AsyncCallback<OpenProfilePickerReturns> & TypeOf<(typeof openProfilePickerArgs)[0]>): Promise<OpenProfilePickerReturns>;
|
|
2124
2124
|
|
|
2125
2125
|
declare const connectWifiArgs: ZodObject<{
|
|
2126
2126
|
SSID: ZodString;
|
|
@@ -2135,7 +2135,7 @@ declare const connectWifiArgs: ZodObject<{
|
|
|
2135
2135
|
hiddenSSID?: boolean | undefined;
|
|
2136
2136
|
SSID: string;
|
|
2137
2137
|
}>[];
|
|
2138
|
-
declare function connectWifi(args: AsyncVoidCallback & TypeOf<typeof connectWifiArgs[0]>): Promise<void>;
|
|
2138
|
+
declare function connectWifi(args: AsyncVoidCallback & TypeOf<(typeof connectWifiArgs)[0]>): Promise<void>;
|
|
2139
2139
|
|
|
2140
2140
|
declare const openMediaPickerArgs: ZodObject<{
|
|
2141
2141
|
type: ZodEnum<["video", "photo", "file", "zcamera", "zcamera_photo", "zcamera_video", "zcamera_scan"]>;
|
|
@@ -2174,7 +2174,7 @@ declare const openMediaPickerArgs: ZodObject<{
|
|
|
2174
2174
|
type: "video" | "zcamera" | "zcamera_photo" | "zcamera_video" | "zcamera_scan" | "photo" | "file";
|
|
2175
2175
|
serverUploadUrl: string;
|
|
2176
2176
|
}>[];
|
|
2177
|
-
declare function openMediaPicker(args: AsyncCallback<OpenMediaPickerReturns> & TypeOf<typeof openMediaPickerArgs[0]>): Promise<OpenMediaPickerReturns>;
|
|
2177
|
+
declare function openMediaPicker(args: AsyncCallback<OpenMediaPickerReturns> & TypeOf<(typeof openMediaPickerArgs)[0]>): Promise<OpenMediaPickerReturns>;
|
|
2178
2178
|
|
|
2179
2179
|
declare const getShareableLinkArgs: ZodObject<{
|
|
2180
2180
|
title: ZodString;
|
|
@@ -2184,22 +2184,22 @@ declare const getShareableLinkArgs: ZodObject<{
|
|
|
2184
2184
|
}, "strip", ZodTypeAny, {
|
|
2185
2185
|
path?: string | undefined;
|
|
2186
2186
|
thumbnail?: string | undefined;
|
|
2187
|
-
title: string;
|
|
2188
2187
|
description: string;
|
|
2188
|
+
title: string;
|
|
2189
2189
|
}, {
|
|
2190
|
-
path?: string | undefined;
|
|
2191
2190
|
description?: string | undefined;
|
|
2191
|
+
path?: string | undefined;
|
|
2192
2192
|
thumbnail?: string | undefined;
|
|
2193
2193
|
title: string;
|
|
2194
2194
|
}>[];
|
|
2195
|
-
declare function getShareableLink(args: AsyncCallback<string> & TypeOf<typeof getShareableLinkArgs[0]>): Promise<string>;
|
|
2195
|
+
declare function getShareableLink(args: AsyncCallback<string> & TypeOf<(typeof getShareableLinkArgs)[0]>): Promise<string>;
|
|
2196
2196
|
|
|
2197
2197
|
declare function closeLoading(args?: AsyncVoidCallback): Promise<void>;
|
|
2198
2198
|
|
|
2199
2199
|
declare function requestUpdateZalo(args?: AsyncVoidCallback): Promise<void>;
|
|
2200
2200
|
|
|
2201
2201
|
declare const onConfirmToExitArgs: ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>[];
|
|
2202
|
-
declare function onConfirmToExit(args: TypeOf<typeof onConfirmToExitArgs[0]>): void;
|
|
2202
|
+
declare function onConfirmToExit(args: TypeOf<(typeof onConfirmToExitArgs)[0]>): void;
|
|
2203
2203
|
|
|
2204
2204
|
declare function offConfirmToExit(): void;
|
|
2205
2205
|
|
|
@@ -2216,7 +2216,7 @@ declare function getAuthCode(args?: AsyncCallback<GetAuthCodeReturns>): Promise<
|
|
|
2216
2216
|
declare function getZPIToken(args?: AsyncCallback<GetZPITokenReturns>): Promise<GetZPITokenReturns>;
|
|
2217
2217
|
|
|
2218
2218
|
declare const setAccessTokenArgs: ZodString[];
|
|
2219
|
-
declare function setAccessToken(args: TypeOf<typeof setAccessTokenArgs[0]>): void;
|
|
2219
|
+
declare function setAccessToken(args: TypeOf<(typeof setAccessTokenArgs)[0]>): void;
|
|
2220
2220
|
|
|
2221
2221
|
declare const openOutAppArgs: ZodObject<{
|
|
2222
2222
|
url: ZodString;
|
|
@@ -2225,7 +2225,7 @@ declare const openOutAppArgs: ZodObject<{
|
|
|
2225
2225
|
}, {
|
|
2226
2226
|
url: string;
|
|
2227
2227
|
}>[];
|
|
2228
|
-
declare function openOutApp(args: TypeOf<typeof openOutAppArgs[0]>): Promise<void>;
|
|
2228
|
+
declare function openOutApp(args: TypeOf<(typeof openOutAppArgs)[0]>): Promise<void>;
|
|
2229
2229
|
|
|
2230
2230
|
declare const chooseImageArgs: ZodObject<{
|
|
2231
2231
|
count: ZodDefault<ZodOptional<ZodNumber>>;
|
|
@@ -2240,7 +2240,7 @@ declare const chooseImageArgs: ZodObject<{
|
|
|
2240
2240
|
sourceType?: ("album" | "camera")[] | undefined;
|
|
2241
2241
|
cameraType?: "back" | "front" | undefined;
|
|
2242
2242
|
}>[];
|
|
2243
|
-
declare function chooseImage(args: AsyncCallback<ChooseImageReturns> & TypeOf<typeof chooseImageArgs[0]>): Promise<ChooseImageReturns>;
|
|
2243
|
+
declare function chooseImage(args: AsyncCallback<ChooseImageReturns> & TypeOf<(typeof chooseImageArgs)[0]>): Promise<ChooseImageReturns>;
|
|
2244
2244
|
|
|
2245
2245
|
declare function getLocation(args?: AsyncCallback<GetLocationReturns>): Promise<GetLocationReturns>;
|
|
2246
2246
|
|
|
@@ -2251,7 +2251,7 @@ declare const onCallbackDataArgs: ZodFunction<ZodTuple<[ZodObject<{
|
|
|
2251
2251
|
}, {
|
|
2252
2252
|
data?: any;
|
|
2253
2253
|
}>], ZodUnknown>, ZodVoid>[];
|
|
2254
|
-
declare function onCallbackData(args: TypeOf<typeof onCallbackDataArgs[0]>): void;
|
|
2254
|
+
declare function onCallbackData(args: TypeOf<(typeof onCallbackDataArgs)[0]>): void;
|
|
2255
2255
|
|
|
2256
2256
|
declare const createOrderArgs: ZodObject<{
|
|
2257
2257
|
amount: ZodUnion<[ZodString, ZodNumber]>;
|
|
@@ -2281,7 +2281,7 @@ declare const checkTransactionArgs: ZodObject<{
|
|
|
2281
2281
|
}, {
|
|
2282
2282
|
data: string | Record<string, string>;
|
|
2283
2283
|
}>[];
|
|
2284
|
-
declare function checkTransaction(args: AsyncCallback<CheckTransactionReturns> & TypeOf<typeof checkTransactionArgs[0]>): Promise<CheckTransactionReturns>;
|
|
2284
|
+
declare function checkTransaction(args: AsyncCallback<CheckTransactionReturns> & TypeOf<(typeof checkTransactionArgs)[0]>): Promise<CheckTransactionReturns>;
|
|
2285
2285
|
|
|
2286
2286
|
declare const events: EventEmitter;
|
|
2287
2287
|
|
|
@@ -2292,7 +2292,7 @@ declare const setAndroidBottomNavigationBarArgs: ZodOptional<ZodObject<{
|
|
|
2292
2292
|
}, {
|
|
2293
2293
|
hide?: boolean | undefined;
|
|
2294
2294
|
}>>[];
|
|
2295
|
-
declare function setAndroidBottomNavigationBar(args: AsyncVoidCallback & TypeOf<typeof setAndroidBottomNavigationBarArgs[0]>): Promise<void>;
|
|
2295
|
+
declare function setAndroidBottomNavigationBar(args: AsyncVoidCallback & TypeOf<(typeof setAndroidBottomNavigationBarArgs)[0]>): Promise<void>;
|
|
2296
2296
|
|
|
2297
2297
|
declare const setIOSBottomSafeAreaArgs: ZodOptional<ZodObject<{
|
|
2298
2298
|
hide: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
@@ -2301,7 +2301,7 @@ declare const setIOSBottomSafeAreaArgs: ZodOptional<ZodObject<{
|
|
|
2301
2301
|
}, {
|
|
2302
2302
|
hide?: boolean | undefined;
|
|
2303
2303
|
}>>[];
|
|
2304
|
-
declare function setIOSBottomSafeArea(args: AsyncVoidCallback & TypeOf<typeof setIOSBottomSafeAreaArgs[0]>): Promise<void>;
|
|
2304
|
+
declare function setIOSBottomSafeArea(args: AsyncVoidCallback & TypeOf<(typeof setIOSBottomSafeAreaArgs)[0]>): Promise<void>;
|
|
2305
2305
|
|
|
2306
2306
|
declare const setStatusBarArgs: ZodOptional<ZodObject<{
|
|
2307
2307
|
type: ZodOptional<ZodDefault<ZodEnum<["normal", "hidden", "transparent"]>>>;
|
|
@@ -2313,7 +2313,7 @@ declare const setStatusBarArgs: ZodOptional<ZodObject<{
|
|
|
2313
2313
|
type?: "hidden" | "transparent" | "normal" | undefined;
|
|
2314
2314
|
color?: string | undefined;
|
|
2315
2315
|
}>>[];
|
|
2316
|
-
declare function setStatusBar(args: AsyncVoidCallback & TypeOf<typeof setStatusBarArgs[0]>): Promise<void>;
|
|
2316
|
+
declare function setStatusBar(args: AsyncVoidCallback & TypeOf<(typeof setStatusBarArgs)[0]>): Promise<void>;
|
|
2317
2317
|
|
|
2318
2318
|
declare const configAppViewArgs: ZodObject<{
|
|
2319
2319
|
headerTextColor: ZodOptional<ZodEnum<["black", "white"]>>;
|
|
@@ -2362,7 +2362,7 @@ declare const configAppViewArgs: ZodObject<{
|
|
|
2362
2362
|
hideAndroidBottomNavigationBar?: boolean | undefined;
|
|
2363
2363
|
hideIOSSafeAreaBottom?: boolean | undefined;
|
|
2364
2364
|
}>[];
|
|
2365
|
-
declare function configAppView(args: AsyncVoidCallback & TypeOf<typeof configAppViewArgs[0]>): Promise<void>;
|
|
2365
|
+
declare function configAppView(args: AsyncVoidCallback & TypeOf<(typeof configAppViewArgs)[0]>): Promise<void>;
|
|
2366
2366
|
|
|
2367
2367
|
declare const createOrderIAPArgs: ZodObject<{
|
|
2368
2368
|
productId: ZodString;
|
|
@@ -2380,7 +2380,7 @@ declare const createOrderIAPArgs: ZodObject<{
|
|
|
2380
2380
|
prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
|
|
2381
2381
|
productId: string;
|
|
2382
2382
|
}>[];
|
|
2383
|
-
declare function createOrderIAP(args: AsyncCallback<CreateOrderIAPReturns> & TypeOf<typeof createOrderIAPArgs[0]>): Promise<CreateOrderIAPReturns>;
|
|
2383
|
+
declare function createOrderIAP(args: AsyncCallback<CreateOrderIAPReturns> & TypeOf<(typeof createOrderIAPArgs)[0]>): Promise<CreateOrderIAPReturns>;
|
|
2384
2384
|
|
|
2385
2385
|
declare function minimizeApp(args?: AsyncVoidCallback): Promise<void>;
|
|
2386
2386
|
|