@punks/backend-entity-manager 0.0.458 → 0.0.460
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 +13 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/files.d.ts +5 -0
- package/dist/cjs/types/platforms/nest/plugins/buckets/aws-s3/provider/files.d.ts +1 -0
- package/dist/esm/index.js +13 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/files.d.ts +5 -0
- package/dist/esm/types/platforms/nest/plugins/buckets/aws-s3/provider/files.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -5,6 +5,8 @@ export type FileData = {
|
|
|
5
5
|
contentType: string;
|
|
6
6
|
fileName: string;
|
|
7
7
|
folderPath: string;
|
|
8
|
+
storageFilePath?: string;
|
|
9
|
+
storageBucket?: string;
|
|
8
10
|
metadata?: Record<string, any>;
|
|
9
11
|
};
|
|
10
12
|
export type FileDownloadUrl = {
|
|
@@ -50,12 +52,15 @@ export interface IFilesReferenceRepository {
|
|
|
50
52
|
}
|
|
51
53
|
export type FileProviderReference = {
|
|
52
54
|
reference: string;
|
|
55
|
+
bucket?: string;
|
|
53
56
|
};
|
|
54
57
|
export type FileProviderUploadData = {
|
|
55
58
|
fileId?: string;
|
|
56
59
|
fileName: string;
|
|
60
|
+
filePath?: string;
|
|
57
61
|
content: Buffer;
|
|
58
62
|
contentType: string;
|
|
63
|
+
bucket?: string;
|
|
59
64
|
};
|
|
60
65
|
export type FileProviderDownloadData = {
|
|
61
66
|
content: Buffer;
|
|
@@ -9,5 +9,6 @@ export declare class AwsS3FileProvider implements IFileProvider {
|
|
|
9
9
|
downloadFile(reference: FileProviderReference): Promise<FileProviderDownloadData>;
|
|
10
10
|
getFileProviderDownloadUrl(reference: FileProviderReference): Promise<FileProviderDownloadUrl>;
|
|
11
11
|
private getBucketFileUploadPath;
|
|
12
|
+
private getBucketFileUploadDayPath;
|
|
12
13
|
get defaultBucket(): string;
|
|
13
14
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -858,6 +858,8 @@ type FileData = {
|
|
|
858
858
|
contentType: string;
|
|
859
859
|
fileName: string;
|
|
860
860
|
folderPath: string;
|
|
861
|
+
storageFilePath?: string;
|
|
862
|
+
storageBucket?: string;
|
|
861
863
|
metadata?: Record<string, any>;
|
|
862
864
|
};
|
|
863
865
|
type FileDownloadUrl = {
|
|
@@ -903,12 +905,15 @@ interface IFilesReferenceRepository {
|
|
|
903
905
|
}
|
|
904
906
|
type FileProviderReference = {
|
|
905
907
|
reference: string;
|
|
908
|
+
bucket?: string;
|
|
906
909
|
};
|
|
907
910
|
type FileProviderUploadData = {
|
|
908
911
|
fileId?: string;
|
|
909
912
|
fileName: string;
|
|
913
|
+
filePath?: string;
|
|
910
914
|
content: Buffer;
|
|
911
915
|
contentType: string;
|
|
916
|
+
bucket?: string;
|
|
912
917
|
};
|
|
913
918
|
type FileProviderDownloadData = {
|
|
914
919
|
content: Buffer;
|