@veloceapps/sdk 11.0.0-98 → 11.0.0-99

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.
@@ -378,8 +378,8 @@ class GuidedSellingService {
378
378
  orchestrationName: data.orchestrationName,
379
379
  })
380
380
  .pipe(map(transactionContext => {
381
- const guidedSellingNode = transactionContext.childNodes['GuidedSelling']?.[0];
382
- const guidedSellingResult = guidedSellingNode?.tagAttributes?.['result'] || {};
381
+ const guidedSellingNode = transactionContext.nodes['GuidedSelling']?.[0];
382
+ const guidedSellingResult = guidedSellingNode?.attributes?.['result'] || {};
383
383
  this.guidedSellingResult$.next(guidedSellingResult);
384
384
  return guidedSellingResult;
385
385
  }));
@@ -392,24 +392,24 @@ class GuidedSellingService {
392
392
  id: UUID.UUID(),
393
393
  businessObjectType: 'Quote',
394
394
  salesTransactionItems: [],
395
- tagAttributes: {},
395
+ attributes: {},
396
396
  };
397
397
  return {
398
398
  salesTransaction: testTransaction,
399
399
  transactionId: UUID.UUID(),
400
400
  businessObjectType: 'Quote',
401
- childNodes: {
401
+ nodes: {
402
402
  GuidedSelling: [
403
403
  {
404
404
  id: UUID.UUID(),
405
- tagAttributes: {},
406
- childNodes: {},
405
+ attributes: {},
406
+ nodes: {},
407
407
  properties: { guidedSellingAttributes },
408
408
  },
409
409
  ],
410
410
  },
411
411
  id: UUID.UUID(),
412
- tagAttributes: {},
412
+ attributes: {},
413
413
  };
414
414
  }
415
415
  }
@@ -475,7 +475,7 @@ class ConfigurationService {
475
475
  }
476
476
  const guidedSellingResult = this.guidedSellingService.guidedSellingResult;
477
477
  if (transactionItem && Object.keys(guidedSellingResult).length && isRootGenerated) {
478
- transactionItem.attributes = Object.entries(guidedSellingResult).map(([attributeName, value]) => ({
478
+ transactionItem.stiAttributes = Object.entries(guidedSellingResult).map(([attributeName, value]) => ({
479
479
  attributeName,
480
480
  value,
481
481
  }));
@@ -743,9 +743,9 @@ class TestModeConfigurationService {
743
743
  salesTransaction: testTransaction,
744
744
  transactionId: quoteId,
745
745
  businessObjectType: 'Quote',
746
- childNodes: {},
746
+ nodes: {},
747
747
  id: UUID.UUID(),
748
- tagAttributes: {},
748
+ attributes: {},
749
749
  };
750
750
  }
751
751
  checkInitialized(uiDefinitionContainer) {
@@ -1196,7 +1196,7 @@ class FlowStateConfigurationService {
1196
1196
  {
1197
1197
  ...generateTransactionItem(props.productId),
1198
1198
  qty: props.qty ?? 1,
1199
- attributes: Object.entries(props.attributesMap ?? {}).map(([attributeName, value]) => ({
1199
+ stiAttributes: Object.entries(props.attributesMap ?? {}).map(([attributeName, value]) => ({
1200
1200
  attributeName,
1201
1201
  value,
1202
1202
  })),