@veloceapps/api 11.0.0-99 → 12.0.0-0

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
  }));
@@ -1301,12 +1304,12 @@ class UIDefinitionsAdminApiService {
1301
1304
  this.baseHttpService = baseHttpService;
1302
1305
  this.serviceUrl = '/admin/v2/uidefinitions';
1303
1306
  }
1304
- fetchAll$(params) {
1307
+ fetchAll$(params, options) {
1305
1308
  let httpParams = new HttpParams();
1306
1309
  if (params?.productId != null) {
1307
1310
  httpParams = httpParams.set('productId', params.productId);
1308
1311
  }
1309
- if (params?.defaultUIDefinitionId != null) {
1312
+ if (params?.defaultUIDefinitionId) {
1310
1313
  httpParams = httpParams.set('defaultUIDefinitionId', params.defaultUIDefinitionId);
1311
1314
  }
1312
1315
  return this.baseHttpService
@@ -1314,14 +1317,16 @@ class UIDefinitionsAdminApiService {
1314
1317
  method: 'get',
1315
1318
  url: this.serviceUrl,
1316
1319
  params: httpParams,
1320
+ ...options,
1317
1321
  })
1318
1322
  .pipe(map$1(containers => containers.map(uiDefinitionFromDTO)));
1319
1323
  }
1320
- fetch$(id) {
1324
+ fetch$(id, options) {
1321
1325
  return this.baseHttpService
1322
1326
  .api({
1323
1327
  method: 'get',
1324
1328
  url: `${this.serviceUrl}/${id}`,
1329
+ ...options,
1325
1330
  })
1326
1331
  .pipe(map$1(container => uiDefinitionFromDTO({ ...container, id })));
1327
1332
  }