@punks/backend-entity-manager 0.0.448 → 0.0.450

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:
@@ -356,7 +355,6 @@ class EntitySerializer {
356
355
  refDate: new Date(),
357
356
  });
358
357
  const context = await this.getContext();
359
- console.log("buildSampleFile", "definition call");
360
358
  const definition = await this.getDefinition(context);
361
359
  switch (format) {
362
360
  case exports.EntitySerializationFormat.Csv:
@@ -408,8 +406,8 @@ class EntitySerializer {
408
406
  throw new Error("Json sample not implemented");
409
407
  }
410
408
  }
411
- async serialize(data, format) {
412
- return await this.buildExportFile(data, format);
409
+ async serialize(data, format, payload) {
410
+ return await this.buildExportFile(data, format, payload);
413
411
  }
414
412
  validateSheetItem(item, allItems, context) { }
415
413
  async getContext() {
@@ -417,14 +415,13 @@ class EntitySerializer {
417
415
  .resolveAuthenticationContextProvider()
418
416
  ?.getContext());
419
417
  }
420
- async buildExportFile(data, format) {
418
+ async buildExportFile(data, format, payload) {
421
419
  const fileName = this.buildExportFileName({
422
420
  format,
423
421
  refDate: new Date(),
424
422
  });
425
423
  const context = await this.getContext();
426
- console.log("buildExportFile", "definition call");
427
- const definition = await this.getDefinition(context);
424
+ const definition = await this.getDefinition(context, payload);
428
425
  switch (format) {
429
426
  case exports.EntitySerializationFormat.Csv:
430
427
  return {