@veloceapps/sdk 11.0.0-97 → 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.
- package/core/modules/configuration/services/guided-selling.service.d.ts +1 -1
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +2 -2
- package/esm2020/core/modules/configuration/services/guided-selling.service.mjs +9 -9
- package/esm2020/core/modules/configuration/services/test-mode-configuration.service.mjs +3 -3
- package/esm2020/core/services/flow-state-configuration.service.mjs +2 -2
- package/fesm2015/veloceapps-sdk-core.mjs +11 -11
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +11 -11
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -378,8 +378,8 @@ class GuidedSellingService {
|
|
378
378
|
orchestrationName: data.orchestrationName,
|
379
379
|
})
|
380
380
|
.pipe(map(transactionContext => {
|
381
|
-
const guidedSellingNode = transactionContext.
|
382
|
-
const guidedSellingResult = guidedSellingNode?.
|
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
|
-
|
395
|
+
attributes: {},
|
396
396
|
};
|
397
397
|
return {
|
398
398
|
salesTransaction: testTransaction,
|
399
399
|
transactionId: UUID.UUID(),
|
400
400
|
businessObjectType: 'Quote',
|
401
|
-
|
401
|
+
nodes: {
|
402
402
|
GuidedSelling: [
|
403
403
|
{
|
404
404
|
id: UUID.UUID(),
|
405
|
-
|
406
|
-
|
405
|
+
attributes: {},
|
406
|
+
nodes: {},
|
407
407
|
properties: { guidedSellingAttributes },
|
408
408
|
},
|
409
409
|
],
|
410
410
|
},
|
411
411
|
id: UUID.UUID(),
|
412
|
-
|
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.
|
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
|
-
|
746
|
+
nodes: {},
|
747
747
|
id: UUID.UUID(),
|
748
|
-
|
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
|
-
|
1199
|
+
stiAttributes: Object.entries(props.attributesMap ?? {}).map(([attributeName, value]) => ({
|
1200
1200
|
attributeName,
|
1201
1201
|
value,
|
1202
1202
|
})),
|