@punks/backend-entity-manager 0.0.445 → 0.0.447

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 CHANGED
@@ -259,7 +259,6 @@ class EntitySerializer {
259
259
  }
260
260
  async parse(data, format, payload) {
261
261
  const context = await this.getContext();
262
- console.log("/serializer/base/parse", payload);
263
262
  const definition = await this.getDefinition(context, payload);
264
263
  switch (format) {
265
264
  case exports.EntitySerializationFormat.Csv:
@@ -966,7 +965,6 @@ class EntitiesImportCommand {
966
965
  contentType: input.file.contentType,
967
966
  fileName: input.file.fileName,
968
967
  });
969
- console.log("/commands/import/execute", input?.payload);
970
968
  const importEntities = await this.parseImportFile(input.file.content, input.format, input?.payload);
971
969
  const validEntities = importEntities.filter((x) => x.status.isValid);
972
970
  const invalidEntities = importEntities.filter((x) => !x.status.isValid);
@@ -988,7 +986,6 @@ class EntitiesImportCommand {
988
986
  };
989
987
  }
990
988
  async parseImportFile(content, format, payload) {
991
- console.log("/import/command/parseImportFile", payload);
992
989
  return await this.services
993
990
  .resolveSerializer()
994
991
  .parse(content, format, payload);
@@ -1020,13 +1017,15 @@ class EntitiesParseCommand {
1020
1017
  contentType: input.file.contentType,
1021
1018
  fileName: input.file.fileName,
1022
1019
  });
1023
- const entries = await this.parseImportFile(input.file.content, input.format);
1020
+ const entries = await this.parseImportFile(input.file.content, input.format, input?.payload);
1024
1021
  return {
1025
1022
  entries,
1026
1023
  };
1027
1024
  }
1028
- async parseImportFile(content, format) {
1029
- return await this.services.resolveSerializer().parse(content, format);
1025
+ async parseImportFile(content, format, payload) {
1026
+ return await this.services
1027
+ .resolveSerializer()
1028
+ .parse(content, format, payload);
1030
1029
  }
1031
1030
  async uploadImportFile(file) {
1032
1031
  await this.bucket.fileUpload({