@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/cjs/index.js
CHANGED
|
@@ -356,6 +356,7 @@ class EntitySerializer {
|
|
|
356
356
|
refDate: new Date(),
|
|
357
357
|
});
|
|
358
358
|
const context = await this.getContext();
|
|
359
|
+
console.log("buildSampleFile", "definition call");
|
|
359
360
|
const definition = await this.getDefinition(context);
|
|
360
361
|
switch (format) {
|
|
361
362
|
case exports.EntitySerializationFormat.Csv:
|
|
@@ -422,6 +423,7 @@ class EntitySerializer {
|
|
|
422
423
|
refDate: new Date(),
|
|
423
424
|
});
|
|
424
425
|
const context = await this.getContext();
|
|
426
|
+
console.log("buildExportFile", "definition call");
|
|
425
427
|
const definition = await this.getDefinition(context);
|
|
426
428
|
switch (format) {
|
|
427
429
|
case exports.EntitySerializationFormat.Csv:
|
|
@@ -966,7 +968,6 @@ class EntitiesImportCommand {
|
|
|
966
968
|
contentType: input.file.contentType,
|
|
967
969
|
fileName: input.file.fileName,
|
|
968
970
|
});
|
|
969
|
-
console.log("/commands/import/execute", input?.payload);
|
|
970
971
|
const importEntities = await this.parseImportFile(input.file.content, input.format, input?.payload);
|
|
971
972
|
const validEntities = importEntities.filter((x) => x.status.isValid);
|
|
972
973
|
const invalidEntities = importEntities.filter((x) => !x.status.isValid);
|
|
@@ -988,7 +989,6 @@ class EntitiesImportCommand {
|
|
|
988
989
|
};
|
|
989
990
|
}
|
|
990
991
|
async parseImportFile(content, format, payload) {
|
|
991
|
-
console.log("/import/command/parseImportFile", payload);
|
|
992
992
|
return await this.services
|
|
993
993
|
.resolveSerializer()
|
|
994
994
|
.parse(content, format, payload);
|