superapp-miniapp-invoke-native 1.10.3 → 1.11.0

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 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 = {
@@ -327,6 +352,7 @@ declare interface MiniAppBeforeUnmountParamsType {
327
352
 
328
353
  declare interface MiniAppKongType {
329
354
  miniAppNames: any[];
355
+ configurationKeys: any[];
330
356
  [key: string]: any;
331
357
  }
332
358
 
@@ -372,6 +398,7 @@ export declare class NativeApi {
372
398
  cameraForTakePhotoPlugin: CameraForTakePhotoPlugins;
373
399
  httpPlugin: HttpPlugins;
374
400
  printPlugins: PrintPlugins;
401
+ downloadFilePlugin: DownloadFilePlugin;
375
402
  }
376
403
 
377
404
  declare interface NativeInfoConfigType {