@firecms/data_import_export 3.0.0-canary.43 → 3.0.0-canary.45

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.
@@ -0,0 +1,7 @@
1
+ import { Entity, ResolvedProperties } from "@firecms/core";
2
+ export type BasicExportActionProps = {
3
+ data: Entity<any>[];
4
+ properties: ResolvedProperties;
5
+ propertiesOrder?: string[];
6
+ };
7
+ export declare function BasicExportAction({ data, properties, propertiesOrder }: BasicExportActionProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
- import { Entity, ResolvedEntityCollection, ResolvedProperties } from "@firecms/core";
1
+ import { Entity, ResolvedProperties } from "@firecms/core";
2
2
  interface Header {
3
3
  key: string;
4
4
  label: string;
5
5
  }
6
- export declare function downloadExport<M extends Record<string, any>>(data: Entity<M>[], additionalData: Record<string, any>[] | undefined, collection: ResolvedEntityCollection<M>, flattenArrays: boolean, additionalHeaders: string[] | undefined, exportType: "csv" | "json", dateExportType: "timestamp" | "string"): void;
7
- export declare function getCSVExportableData(data: Entity<any>[], additionalData: Record<string, any>[] | undefined, properties: ResolvedProperties, headers: Header[], dateExportType: "timestamp" | "string"): any[][];
8
- export declare function getJsonExportableData(data: Entity<any>[], additionalData: Record<string, any>[] | undefined, properties: ResolvedProperties, dateExportType: "timestamp" | "string"): any[];
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;
7
+ export declare function getEntityCSVExportableData(data: Entity<any>[], additionalData: Record<string, any>[] | undefined, properties: ResolvedProperties, headers: Header[], dateExportType: "timestamp" | "string"): any[][];
8
+ export declare function getEntityJsonExportableData(data: Entity<any>[], additionalData: Record<string, any>[] | undefined, properties: ResolvedProperties, dateExportType: "timestamp" | "string"): any[];
9
9
  export declare function downloadBlob(content: BlobPart[], filename: string, contentType: string): void;
10
10
  export {};
@@ -0,0 +1,4 @@
1
+ export * from "./export";
2
+ export * from "./BasicExportAction";
3
+ export * from "./ExportCollectionAction";
4
+ export * from "./ImportCollectionAction";
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from "./components";
3
3
  export * from "./types";
4
4
  export * from "./utils";
5
5
  export * from "./hooks";
6
+ export * from "./export_import";