@punks/backend-entity-manager 0.0.446 → 0.0.448
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 +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -341,6 +341,7 @@ class EntitySerializer {
|
|
|
341
341
|
refDate: new Date(),
|
|
342
342
|
});
|
|
343
343
|
const context = await this.getContext();
|
|
344
|
+
console.log("buildSampleFile", "definition call");
|
|
344
345
|
const definition = await this.getDefinition(context);
|
|
345
346
|
switch (format) {
|
|
346
347
|
case EntitySerializationFormat.Csv:
|
|
@@ -407,6 +408,7 @@ class EntitySerializer {
|
|
|
407
408
|
refDate: new Date(),
|
|
408
409
|
});
|
|
409
410
|
const context = await this.getContext();
|
|
411
|
+
console.log("buildExportFile", "definition call");
|
|
410
412
|
const definition = await this.getDefinition(context);
|
|
411
413
|
switch (format) {
|
|
412
414
|
case EntitySerializationFormat.Csv:
|
|
@@ -951,7 +953,6 @@ class EntitiesImportCommand {
|
|
|
951
953
|
contentType: input.file.contentType,
|
|
952
954
|
fileName: input.file.fileName,
|
|
953
955
|
});
|
|
954
|
-
console.log("/commands/import/execute", input?.payload);
|
|
955
956
|
const importEntities = await this.parseImportFile(input.file.content, input.format, input?.payload);
|
|
956
957
|
const validEntities = importEntities.filter((x) => x.status.isValid);
|
|
957
958
|
const invalidEntities = importEntities.filter((x) => !x.status.isValid);
|
|
@@ -973,7 +974,6 @@ class EntitiesImportCommand {
|
|
|
973
974
|
};
|
|
974
975
|
}
|
|
975
976
|
async parseImportFile(content, format, payload) {
|
|
976
|
-
console.log("/import/command/parseImportFile", payload);
|
|
977
977
|
return await this.services
|
|
978
978
|
.resolveSerializer()
|
|
979
979
|
.parse(content, format, payload);
|