zmp-sdk 2.15.3 → 2.15.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.
@@ -105,6 +105,7 @@ export declare abstract class SDKCreator {
105
105
  onCallbackData(callback: (res: InputDataType.OnCallbackData) => void): Promise<void>;
106
106
  getPhoneNumber(object?: InputDataType.CallbackType<CallbackDataType.GetPhoneNumberSuccessCallBack>): Promise<CallbackDataType.GetPhoneNumberSuccessCallBack>;
107
107
  openProfilePicker(object: InputDataType.OpenProfilePicker<CallbackDataType.OpenProfilePickerSuccessCallBack>): Promise<CallbackDataType.OpenProfilePickerSuccessCallBack>;
108
+ getShareableLink(object: InputDataType.GetShareableLink<string>): Promise<string>;
108
109
  }
109
110
  export declare class ZaloMiniAppSDKCreator extends SDKCreator {
110
111
  protected getInstance(): SDKInterface;
@@ -425,4 +425,16 @@ export declare type ActionBarConfig = {
425
425
  url: string;
426
426
  };
427
427
  };
428
+ /**
429
+ * get zmp shareable link
430
+ */
431
+ export declare type GetShareableLink<T> = CallbackType<T> & {
432
+ title: string;
433
+ description: string | {
434
+ vi?: string;
435
+ en?: string;
436
+ };
437
+ thumbnail: string;
438
+ path: string;
439
+ };
428
440
  export {};
@@ -62,3 +62,11 @@ export declare const isSupportNativeStorage: () => boolean;
62
62
  export declare const stringifyData: (data: any) => string;
63
63
  export declare const stringToData: (data: string | null) => any;
64
64
  export declare const checkIOSSupportAction: (action: string) => boolean;
65
+ export declare const getZMPShareInfo: (appID: string, accessToken: string, shareTitle: string, shareDescription: string | {
66
+ vi?: string;
67
+ en?: string;
68
+ }, shareThumbnail: string, sharePath?: string | undefined) => Promise<{
69
+ zinstantApi: string;
70
+ shareId: string;
71
+ shareableLink: string;
72
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmp-sdk",
3
- "version": "2.15.3",
3
+ "version": "2.15.4",
4
4
  "description": "Zalo Mini App SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",