@punks/backend-entity-manager 0.0.450 → 0.0.452
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 +5 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/export.d.ts +2 -1
- package/dist/cjs/types/abstractions/serializer.d.ts +1 -1
- package/dist/cjs/types/commands/export.d.ts +1 -1
- package/dist/esm/index.js +5 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/export.d.ts +2 -1
- package/dist/esm/types/abstractions/serializer.d.ts +1 -1
- package/dist/esm/types/commands/export.d.ts +1 -1
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -910,7 +910,7 @@ class EntitiesExportCommand {
|
|
|
910
910
|
}
|
|
911
911
|
async execute(input) {
|
|
912
912
|
const sheetItems = await this.getExportSheetItems(input.filter);
|
|
913
|
-
const outputFile = await this.buildExportFile(sheetItems, input.options.format);
|
|
913
|
+
const outputFile = await this.buildExportFile(sheetItems, input.options.format, input.payload);
|
|
914
914
|
const downloadUrl = await this.uploadExportFile(outputFile);
|
|
915
915
|
return {
|
|
916
916
|
downloadUrl,
|
|
@@ -921,8 +921,10 @@ class EntitiesExportCommand {
|
|
|
921
921
|
},
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
|
-
async buildExportFile(data, format) {
|
|
925
|
-
return await this.services
|
|
924
|
+
async buildExportFile(data, format, payload) {
|
|
925
|
+
return await this.services
|
|
926
|
+
.resolveSerializer()
|
|
927
|
+
.serialize(data, format, payload);
|
|
926
928
|
}
|
|
927
929
|
async uploadExportFile(file) {
|
|
928
930
|
await this.bucket.fileUpload({
|