@veloceapps/sdk 8.0.0-94 → 8.0.0-95
Sign up to get free protection for your applications and to get access to all the features.
- package/core/modules/configuration/helpers.d.ts +2 -2
- package/esm2020/core/modules/configuration/helpers.mjs +8 -3
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +2 -2
- package/fesm2015/veloceapps-sdk-core.mjs +7 -12
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +8 -3
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -33,15 +33,20 @@ const getDefaultLineItem = (context, uiDefinitionProperties, qty = 1) => {
|
|
33
33
|
...(uiDefinitionProperties.offeringId ? { offeringId: uiDefinitionProperties.offeringId } : {}),
|
34
34
|
};
|
35
35
|
};
|
36
|
-
const getGuidedSellingConfigurationRequest = (data) => {
|
36
|
+
const getGuidedSellingConfigurationRequest = (data, context) => {
|
37
|
+
const _context = { ...context };
|
38
|
+
delete _context.configurationToken;
|
39
|
+
const properties = { ...context.properties };
|
40
|
+
delete properties['ConfigurationToken'];
|
37
41
|
return {
|
38
42
|
mode: 'SEARCH',
|
39
43
|
step: 'START',
|
40
44
|
attributeDomainMode: 'ALL',
|
41
45
|
context: {
|
42
|
-
|
46
|
+
..._context,
|
43
47
|
mode: ConfigurationContextMode.TEST,
|
44
48
|
properties: {
|
49
|
+
...properties,
|
45
50
|
ModelId: data.modelId,
|
46
51
|
Name: 'Veloce Guided Selling',
|
47
52
|
PricingEnabled: 'false',
|
@@ -845,7 +850,7 @@ class ConfigurationService {
|
|
845
850
|
configureGuidedSelling$(data) {
|
846
851
|
return this.configurationApiService
|
847
852
|
.configureLineItem({
|
848
|
-
configurationRequest: getGuidedSellingConfigurationRequest(data),
|
853
|
+
configurationRequest: getGuidedSellingConfigurationRequest(data, this.contextService.resolve()),
|
849
854
|
})
|
850
855
|
.pipe(catchError(error => {
|
851
856
|
if (error instanceof HttpErrorResponse) {
|