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.
- package/dist/browser.min.js +41241 -41189
- package/dist/index.es.js +8291 -8239
- package/dist/index.js +3 -3
- package/dist/index.umd.js +13 -14
- package/dist/types/src/controller/index.d.ts +1 -0
- package/dist/types/src/types/inputData.d.ts +12 -0
- package/dist/types/src/utils/common.d.ts +8 -0
- package/package.json +1 -1
|
@@ -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
|
+
}>;
|