zmp-sdk 2.28.3-rc.0 → 2.28.4

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
@@ -236,6 +236,10 @@ declare enum IOSSafeAreaBottomType {
236
236
  show = 1,
237
237
  hide = 0
238
238
  }
239
+ declare enum TextAlignType {
240
+ left = 0,
241
+ center = 1
242
+ }
239
243
 
240
244
  type PickAttr<Attr extends keyof T, T = any> = {
241
245
  [P in keyof T]: T[Attr];
@@ -1752,140 +1756,170 @@ declare function unfollowOA(args: AsyncVoidCallback & TypeOf<typeof unfollowOAAr
1752
1756
  declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1753
1757
  type: ZodEnum<["image"]>;
1754
1758
  data: ZodObject<{
1755
- imageUrl: ZodOptional<ZodString>;
1759
+ imageUrl: ZodString;
1756
1760
  imageUrls: ZodOptional<ZodArray<ZodString, "many">>;
1757
1761
  }, "strip", ZodTypeAny, {
1758
- imageUrl?: string | undefined;
1759
1762
  imageUrls?: string[] | undefined;
1763
+ imageUrl: string;
1760
1764
  }, {
1761
- imageUrl?: string | undefined;
1762
1765
  imageUrls?: string[] | undefined;
1766
+ imageUrl: string;
1763
1767
  }>;
1764
1768
  }, "strip", ZodTypeAny, {
1765
1769
  data: {
1766
- imageUrl?: string | undefined;
1767
1770
  imageUrls?: string[] | undefined;
1771
+ imageUrl: string;
1768
1772
  };
1769
1773
  type: "image";
1770
1774
  }, {
1771
1775
  data: {
1772
- imageUrl?: string | undefined;
1773
1776
  imageUrls?: string[] | undefined;
1777
+ imageUrl: string;
1774
1778
  };
1775
1779
  type: "image";
1776
1780
  }>, ZodObject<{
1777
1781
  type: ZodEnum<["link"]>;
1778
1782
  data: ZodObject<{
1779
- link: ZodOptional<ZodString>;
1783
+ link: ZodString;
1784
+ chatOnly: ZodOptional<ZodBoolean>;
1780
1785
  }, "strip", ZodTypeAny, {
1781
- link?: string | undefined;
1786
+ chatOnly?: boolean | undefined;
1787
+ link: string;
1782
1788
  }, {
1783
- link?: string | undefined;
1789
+ chatOnly?: boolean | undefined;
1790
+ link: string;
1784
1791
  }>;
1785
1792
  }, "strip", ZodTypeAny, {
1786
1793
  data: {
1787
- link?: string | undefined;
1794
+ chatOnly?: boolean | undefined;
1795
+ link: string;
1788
1796
  };
1789
1797
  type: "link";
1790
1798
  }, {
1791
1799
  data: {
1792
- link?: string | undefined;
1800
+ chatOnly?: boolean | undefined;
1801
+ link: string;
1793
1802
  };
1794
1803
  type: "link";
1795
1804
  }>, ZodObject<{
1796
1805
  type: ZodEnum<["oa"]>;
1797
1806
  data: ZodObject<{
1798
- id: ZodOptional<ZodString>;
1807
+ id: ZodString;
1799
1808
  }, "strip", ZodTypeAny, {
1800
- id?: string | undefined;
1809
+ id: string;
1801
1810
  }, {
1802
- id?: string | undefined;
1811
+ id: string;
1803
1812
  }>;
1804
1813
  }, "strip", ZodTypeAny, {
1805
1814
  data: {
1806
- id?: string | undefined;
1815
+ id: string;
1807
1816
  };
1808
1817
  type: "oa";
1809
1818
  }, {
1810
1819
  data: {
1811
- id?: string | undefined;
1820
+ id: string;
1812
1821
  };
1813
1822
  type: "oa";
1814
1823
  }>, ZodObject<{
1815
1824
  type: ZodEnum<["gif"]>;
1816
1825
  data: ZodObject<{
1817
- gifUrl: ZodOptional<ZodString>;
1826
+ gifUrl: ZodString;
1827
+ imageUrl: ZodOptional<ZodString>;
1828
+ width: ZodOptional<ZodNumber>;
1829
+ height: ZodOptional<ZodNumber>;
1818
1830
  }, "strip", ZodTypeAny, {
1819
- gifUrl?: string | undefined;
1831
+ imageUrl?: string | undefined;
1832
+ width?: number | undefined;
1833
+ height?: number | undefined;
1834
+ gifUrl: string;
1820
1835
  }, {
1821
- gifUrl?: string | undefined;
1836
+ imageUrl?: string | undefined;
1837
+ width?: number | undefined;
1838
+ height?: number | undefined;
1839
+ gifUrl: string;
1822
1840
  }>;
1823
1841
  }, "strip", ZodTypeAny, {
1824
1842
  data: {
1825
- gifUrl?: string | undefined;
1843
+ imageUrl?: string | undefined;
1844
+ width?: number | undefined;
1845
+ height?: number | undefined;
1846
+ gifUrl: string;
1826
1847
  };
1827
1848
  type: "gif";
1828
1849
  }, {
1829
1850
  data: {
1830
- gifUrl?: string | undefined;
1851
+ imageUrl?: string | undefined;
1852
+ width?: number | undefined;
1853
+ height?: number | undefined;
1854
+ gifUrl: string;
1831
1855
  };
1832
1856
  type: "gif";
1833
1857
  }>, ZodObject<{
1834
1858
  type: ZodEnum<["video"]>;
1835
1859
  data: ZodObject<{
1836
- videoThumb: ZodOptional<ZodString>;
1837
- videoUrl: ZodOptional<ZodString>;
1860
+ videoThumb: ZodString;
1861
+ videoUrl: ZodString;
1862
+ width: ZodOptional<ZodNumber>;
1863
+ height: ZodOptional<ZodNumber>;
1838
1864
  }, "strip", ZodTypeAny, {
1839
- videoThumb?: string | undefined;
1840
- videoUrl?: string | undefined;
1865
+ width?: number | undefined;
1866
+ height?: number | undefined;
1867
+ videoThumb: string;
1868
+ videoUrl: string;
1841
1869
  }, {
1842
- videoThumb?: string | undefined;
1843
- videoUrl?: string | undefined;
1870
+ width?: number | undefined;
1871
+ height?: number | undefined;
1872
+ videoThumb: string;
1873
+ videoUrl: string;
1844
1874
  }>;
1845
1875
  }, "strip", ZodTypeAny, {
1846
1876
  data: {
1847
- videoThumb?: string | undefined;
1848
- videoUrl?: string | undefined;
1877
+ width?: number | undefined;
1878
+ height?: number | undefined;
1879
+ videoThumb: string;
1880
+ videoUrl: string;
1849
1881
  };
1850
1882
  type: "video";
1851
1883
  }, {
1852
1884
  data: {
1853
- videoThumb?: string | undefined;
1854
- videoUrl?: string | undefined;
1885
+ width?: number | undefined;
1886
+ height?: number | undefined;
1887
+ videoThumb: string;
1888
+ videoUrl: string;
1855
1889
  };
1856
1890
  type: "video";
1857
1891
  }>, ZodObject<{
1858
1892
  type: ZodEnum<["zmp", "zmp_deep_link"]>;
1859
1893
  data: ZodObject<{
1860
- title: ZodOptional<ZodString>;
1861
- thumbnail: ZodOptional<ZodString>;
1894
+ title: ZodString;
1895
+ thumbnail: ZodString;
1862
1896
  path: ZodOptional<ZodString>;
1863
1897
  description: ZodOptional<ZodDefault<ZodString>>;
1864
1898
  }, "strip", ZodTypeAny, {
1865
- title?: string | undefined;
1866
1899
  path?: string | undefined;
1867
1900
  description?: string | undefined;
1868
- thumbnail?: string | undefined;
1901
+ title: string;
1902
+ thumbnail: string;
1869
1903
  }, {
1870
- title?: string | undefined;
1871
1904
  path?: string | undefined;
1872
1905
  description?: string | undefined;
1873
- thumbnail?: string | undefined;
1906
+ title: string;
1907
+ thumbnail: string;
1874
1908
  }>;
1875
1909
  }, "strip", ZodTypeAny, {
1876
1910
  data: {
1877
- title?: string | undefined;
1878
1911
  path?: string | undefined;
1879
1912
  description?: string | undefined;
1880
- thumbnail?: string | undefined;
1913
+ title: string;
1914
+ thumbnail: string;
1881
1915
  };
1882
1916
  type: "zmp" | "zmp_deep_link";
1883
1917
  }, {
1884
1918
  data: {
1885
- title?: string | undefined;
1886
1919
  path?: string | undefined;
1887
1920
  description?: string | undefined;
1888
- thumbnail?: string | undefined;
1921
+ title: string;
1922
+ thumbnail: string;
1889
1923
  };
1890
1924
  type: "zmp" | "zmp_deep_link";
1891
1925
  }>]>[];
@@ -2268,14 +2302,17 @@ declare const configAppViewArgs: ZodObject<{
2268
2302
  hide: ZodOptional<ZodBoolean>;
2269
2303
  title: ZodOptional<ZodString>;
2270
2304
  leftButton: ZodOptional<ZodEnum<["back", "none"]>>;
2305
+ textAlign: ZodOptional<ZodDefault<ZodEnum<["left", "center"]>>>;
2271
2306
  }, "strip", ZodTypeAny, {
2272
2307
  title?: string | undefined;
2273
2308
  hide?: boolean | undefined;
2274
2309
  leftButton?: "none" | "back" | undefined;
2310
+ textAlign?: "left" | "center" | undefined;
2275
2311
  }, {
2276
2312
  title?: string | undefined;
2277
2313
  hide?: boolean | undefined;
2278
2314
  leftButton?: "none" | "back" | undefined;
2315
+ textAlign?: "left" | "center" | undefined;
2279
2316
  }>>;
2280
2317
  statusBarType: ZodOptional<ZodEnum<["normal", "hidden", "transparent"]>>;
2281
2318
  hideAndroidBottomNavigationBar: ZodOptional<ZodBoolean>;
@@ -2287,6 +2324,7 @@ declare const configAppViewArgs: ZodObject<{
2287
2324
  title?: string | undefined;
2288
2325
  hide?: boolean | undefined;
2289
2326
  leftButton?: "none" | "back" | undefined;
2327
+ textAlign?: "left" | "center" | undefined;
2290
2328
  } | undefined;
2291
2329
  statusBarType?: "hidden" | "transparent" | "normal" | undefined;
2292
2330
  hideAndroidBottomNavigationBar?: boolean | undefined;
@@ -2298,6 +2336,7 @@ declare const configAppViewArgs: ZodObject<{
2298
2336
  title?: string | undefined;
2299
2337
  hide?: boolean | undefined;
2300
2338
  leftButton?: "none" | "back" | undefined;
2339
+ textAlign?: "left" | "center" | undefined;
2301
2340
  } | undefined;
2302
2341
  statusBarType?: "hidden" | "transparent" | "normal" | undefined;
2303
2342
  hideAndroidBottomNavigationBar?: boolean | undefined;
@@ -2342,7 +2381,7 @@ declare const interactOAArgs: ZodObject<{
2342
2381
  }, {
2343
2382
  oaId: string;
2344
2383
  }>[];
2345
- declare function interactOa(args: AsyncVoidCallback & TypeOf<typeof interactOAArgs[0]>): Promise<void>;
2384
+ declare function interactOa(args: AsyncVoidCallback & TypeOf<(typeof interactOAArgs)[0]>): Promise<void>;
2346
2385
 
2347
2386
  declare const otherApis: {
2348
2387
  login: typeof login;
@@ -2430,4 +2469,4 @@ declare const payment: {
2430
2469
  createOrderIAP: typeof createOrderIAP;
2431
2470
  };
2432
2471
 
2433
- 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, 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, 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 };
2472
+ 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, 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, 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 };