@punks/backend-entity-manager 0.0.362 → 0.0.364

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,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  export type FileData = {
3
+ fileId?: string;
3
4
  content: Buffer;
4
5
  contentType: string;
5
6
  fileName: string;
@@ -25,6 +26,7 @@ export type FilesReferenceData = {
25
26
  reference: string;
26
27
  providerId: string;
27
28
  metadata?: Record<string, any>;
29
+ fileId?: string;
28
30
  fileName: string;
29
31
  filePath: string;
30
32
  fileSize: number;
@@ -49,6 +51,7 @@ export type FileProviderReference = {
49
51
  reference: string;
50
52
  };
51
53
  export type FileProviderUploadData = {
54
+ fileId?: string;
52
55
  fileName: string;
53
56
  content: Buffer;
54
57
  contentType: string;
@@ -6,6 +6,6 @@ export declare class AppFileController {
6
6
  private readonly getDownloadUrlTemplate;
7
7
  private readonly fileUploadTemplate;
8
8
  constructor(getDownloadUrlTemplate: FileGetDownloadUrlTemplate, fileUploadTemplate: FileUploadTemplate);
9
- import(folderPath: string, file: Express.Multer.File): Promise<void>;
9
+ import(fileId: string | undefined, folderPath: string, file: Express.Multer.File): Promise<void>;
10
10
  getDownloadUrl(fileId: string): Promise<FileGetDownloadUrlResult>;
11
11
  }
package/dist/index.d.ts CHANGED
@@ -829,6 +829,7 @@ interface IEventEmitter {
829
829
  }
830
830
 
831
831
  type FileData = {
832
+ fileId?: string;
832
833
  content: Buffer;
833
834
  contentType: string;
834
835
  fileName: string;
@@ -854,6 +855,7 @@ type FilesReferenceData = {
854
855
  reference: string;
855
856
  providerId: string;
856
857
  metadata?: Record<string, any>;
858
+ fileId?: string;
857
859
  fileName: string;
858
860
  filePath: string;
859
861
  fileSize: number;
@@ -878,6 +880,7 @@ type FileProviderReference = {
878
880
  reference: string;
879
881
  };
880
882
  type FileProviderUploadData = {
883
+ fileId?: string;
881
884
  fileName: string;
882
885
  content: Buffer;
883
886
  contentType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.362",
3
+ "version": "0.0.364",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",