superapp-miniapp-invoke-native 1.10.4 → 1.11.1
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/lib/main.d.ts +26 -0
- package/lib/main.js +706 -595
- package/lib/main.umd.cjs +3 -1
- package/package.json +1 -1
- package/lib/.DS_Store +0 -0
package/lib/main.d.ts
CHANGED
|
@@ -236,6 +236,31 @@ declare interface DispatchToShellParamsType {
|
|
|
236
236
|
[key: string]: any;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
declare interface DownloadFileParamsHandleType {
|
|
240
|
+
downloadFile: (downloadParams: DownloadFileParamsType | undefined) => Promise<DownloadFileResultType>;
|
|
241
|
+
getStatus: () => Promise<any>;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
declare type DownloadFileParamsType = {
|
|
245
|
+
url?: string;
|
|
246
|
+
type?: string;
|
|
247
|
+
fileName?: string;
|
|
248
|
+
fetchOptions?: RequestInit;
|
|
249
|
+
[key: string]: any;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
declare class DownloadFilePlugin implements DownloadFileParamsHandleType {
|
|
253
|
+
downloadFile(downloadParams: DownloadFileParamsType | undefined): Promise<DownloadFileResultType>;
|
|
254
|
+
getStatus(): Promise<any>;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare type DownloadFileResultType = {
|
|
258
|
+
success: boolean;
|
|
259
|
+
message: string;
|
|
260
|
+
type: string;
|
|
261
|
+
fileName: string;
|
|
262
|
+
};
|
|
263
|
+
|
|
239
264
|
declare type FabBtnHandleType = (data: SetFabDataType | any, position?: FabPositionType) => void;
|
|
240
265
|
|
|
241
266
|
declare type FabPositionType = {
|
|
@@ -373,6 +398,7 @@ export declare class NativeApi {
|
|
|
373
398
|
cameraForTakePhotoPlugin: CameraForTakePhotoPlugins;
|
|
374
399
|
httpPlugin: HttpPlugins;
|
|
375
400
|
printPlugins: PrintPlugins;
|
|
401
|
+
downloadFilePlugin: DownloadFilePlugin;
|
|
376
402
|
}
|
|
377
403
|
|
|
378
404
|
declare interface NativeInfoConfigType {
|