@veloceapps/api 11.0.0-100 → 11.0.0-101

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.
@@ -463,14 +463,12 @@ class ContextDefinitionAdminApiService {
463
463
  return of([]);
464
464
  }), map(objects => {
465
465
  return objects.map(object => {
466
- const tag = object.tags?.[0]?.title;
467
466
  const objectAttributes = object.attributes || [];
468
467
  return {
469
468
  id: object.id,
470
- title: tag || object.title,
469
+ title: object.title,
471
470
  parentNodeId: object.parentNodeId,
472
- nodeTags: (object.tags ?? []).map(nodeTag => nodeTag.title),
473
- attributes: objectAttributes.reduce((result, attribute) => {
471
+ attributeTags: objectAttributes.reduce((result, attribute) => {
474
472
  const tag = attribute.tags?.[0]?.title;
475
473
  if (tag) {
476
474
  result.push({
@@ -481,6 +479,11 @@ class ContextDefinitionAdminApiService {
481
479
  }
482
480
  return result;
483
481
  }, []),
482
+ attributes: objectAttributes.map(({ title, fieldType, dataType }) => ({
483
+ title,
484
+ fieldType,
485
+ dataType,
486
+ })),
484
487
  };
485
488
  });
486
489
  }));