@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.
- package/dist/cjs/index.js +18 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/services/export/service.d.ts +7 -1
- package/dist/esm/index.js +18 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/services/export/service.d.ts +7 -1
- package/dist/index.d.ts +6 -1
- package/package.json +1 -1
|
@@ -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:
|
|
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:
|
|
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();
|