@punks/backend-entity-manager 0.0.406 → 0.0.407

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { DataExportFile, DataExportInput } from "./types";
2
3
  import { EntityManagerRegistry } from "../../ioc/registry";
3
4
  export declare class DataExportService {
@@ -5,10 +6,15 @@ export declare class DataExportService {
5
6
  constructor(registry: EntityManagerRegistry);
6
7
  exportData<TSheetItem>(data: TSheetItem[], input: DataExportInput<TSheetItem>): Promise<{
7
8
  downloadUrl: import("../../../../abstractions/files").FileProviderDownloadUrl;
8
- file: DataExportFile;
9
+ file: {
10
+ fileName: string;
11
+ content: Buffer;
12
+ contentType: string;
13
+ };
9
14
  }>;
10
15
  extractData<TSheetItem>(data: TSheetItem[], input: Omit<DataExportInput<TSheetItem>, "fileName">): Promise<DataExportFile>;
11
16
  private uploadExportFile;
17
+ private buildExportFileName;
12
18
  private buildExportFilePath;
13
19
  private get defaultFileProvider();
14
20
  private get defaultBucketProvider();
package/dist/index.d.ts CHANGED
@@ -2356,10 +2356,15 @@ declare class DataExportService {
2356
2356
  constructor(registry: EntityManagerRegistry);
2357
2357
  exportData<TSheetItem>(data: TSheetItem[], input: DataExportInput<TSheetItem>): Promise<{
2358
2358
  downloadUrl: FileProviderDownloadUrl;
2359
- file: DataExportFile;
2359
+ file: {
2360
+ fileName: string;
2361
+ content: Buffer;
2362
+ contentType: string;
2363
+ };
2360
2364
  }>;
2361
2365
  extractData<TSheetItem>(data: TSheetItem[], input: Omit<DataExportInput<TSheetItem>, "fileName">): Promise<DataExportFile>;
2362
2366
  private uploadExportFile;
2367
+ private buildExportFileName;
2363
2368
  private buildExportFilePath;
2364
2369
  private get defaultFileProvider();
2365
2370
  private get defaultBucketProvider();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.406",
3
+ "version": "0.0.407",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",