@punks/backend-entity-manager 0.0.456 → 0.0.458
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 +7 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/actions.d.ts +5 -0
- package/dist/cjs/types/abstractions/commands.d.ts +1 -1
- package/dist/cjs/types/abstractions/files.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/services/files/index.d.ts +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/actions.d.ts +5 -0
- package/dist/esm/types/abstractions/commands.d.ts +1 -1
- package/dist/esm/types/abstractions/files.d.ts +1 -0
- package/dist/esm/types/platforms/nest/services/files/index.d.ts +1 -0
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -23026,6 +23026,13 @@ exports.FilesManager = class FilesManager {
|
|
|
23026
23026
|
reference: record.reference,
|
|
23027
23027
|
};
|
|
23028
23028
|
}
|
|
23029
|
+
async removeFile(fileId) {
|
|
23030
|
+
const ref = await this.referencesRepo.getReference(fileId);
|
|
23031
|
+
await this.getFileProvider(ref.providerId).deleteFile({
|
|
23032
|
+
reference: ref.reference,
|
|
23033
|
+
});
|
|
23034
|
+
await this.referencesRepo.deleteReference(fileId);
|
|
23035
|
+
}
|
|
23029
23036
|
async getFileContent(fileId) {
|
|
23030
23037
|
const ref = await this.referencesRepo.getReference(fileId);
|
|
23031
23038
|
const content = await this.getFileProvider(ref.providerId).downloadFile({
|