@firecms/data_import_export 3.0.0-canary.52 → 3.0.0-canary.53

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.
@@ -3,7 +3,18 @@ interface Header {
3
3
  key: string;
4
4
  label: string;
5
5
  }
6
- export declare function downloadEntitiesExport<M extends Record<string, any>>(data: Entity<M>[], additionalData: Record<string, any>[] | undefined, properties: ResolvedProperties<M>, propertiesOrder: string[] | undefined, name: string, flattenArrays: boolean, additionalHeaders: string[] | undefined, exportType: "csv" | "json", dateExportType: "timestamp" | "string"): void;
6
+ export interface DownloadEntitiesExportParams<M extends Record<string, any>> {
7
+ data: Entity<M>[];
8
+ additionalData: Record<string, any>[] | undefined;
9
+ properties: ResolvedProperties<M>;
10
+ propertiesOrder: string[] | undefined;
11
+ name: string;
12
+ flattenArrays: boolean;
13
+ additionalHeaders: string[] | undefined;
14
+ exportType: "csv" | "json";
15
+ dateExportType: "timestamp" | "string";
16
+ }
17
+ export declare function downloadEntitiesExport<M extends Record<string, any>>({ data, additionalData, properties, propertiesOrder, name, flattenArrays, additionalHeaders, exportType, dateExportType }: DownloadEntitiesExportParams<M>): void;
7
18
  export declare function getEntityCSVExportableData(data: Entity<any>[], additionalData: Record<string, any>[] | undefined, properties: ResolvedProperties, headers: Header[], dateExportType: "timestamp" | "string"): any[][];
8
19
  export declare function getEntityJsonExportableData(data: Entity<any>[], additionalData: Record<string, any>[] | undefined, properties: ResolvedProperties, dateExportType: "timestamp" | "string"): any[];
9
20
  export declare function downloadBlob(content: BlobPart[], filename: string, contentType: string): void;