@veloceapps/sdk 8.0.0-32 → 8.0.0-34
Sign up to get free protection for your applications and to get access to all the features.
- package/core/modules/configuration/services/configuration.service.d.ts +3 -0
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +10 -2
- package/fesm2015/veloceapps-sdk-core.mjs +9 -1
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +9 -1
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -738,6 +738,7 @@ class ConfigurationService {
|
|
738
738
|
this.lineItem = new BehaviorSubject(undefined);
|
739
739
|
this.charges = new BehaviorSubject({});
|
740
740
|
this.pricePlans = new BehaviorSubject({});
|
741
|
+
this.procedureContext = new BehaviorSubject({});
|
741
742
|
this.isLoadingSubj$ = new BehaviorSubject(false);
|
742
743
|
this.isLoading$ = this.isLoadingSubj$.asObservable();
|
743
744
|
this.hasUnsavedChanges = false;
|
@@ -814,6 +815,12 @@ class ConfigurationService {
|
|
814
815
|
get pricePlansSnapshot() {
|
815
816
|
return this.pricePlans.value;
|
816
817
|
}
|
818
|
+
get procedureContext$() {
|
819
|
+
return this.procedureContext.asObservable();
|
820
|
+
}
|
821
|
+
get procedureContextSnapshot() {
|
822
|
+
return this.procedureContext.value;
|
823
|
+
}
|
817
824
|
configure() {
|
818
825
|
return this.configureRequest$(this.generateRequest());
|
819
826
|
}
|
@@ -824,10 +831,11 @@ class ConfigurationService {
|
|
824
831
|
const mainPricingEnabled = runtimeContext.properties?.PricingEnabled;
|
825
832
|
const pricingEnabled = mainPricingEnabled ? mainPricingEnabled === 'true' : uiDefinitionProperties.pricingEnabled;
|
826
833
|
this.isLoadingSubj$.next(true);
|
827
|
-
return this.configurationApiService.configureLineItem({ configurationRequest, runtimeModel, pricingEnabled }).pipe(tap(({ lineItem, context, charges, pricePlans, deletedLineItems }) => {
|
834
|
+
return this.configurationApiService.configureLineItem({ configurationRequest, runtimeModel, pricingEnabled }).pipe(tap(({ lineItem, context, charges, pricePlans, deletedLineItems, procedureContext }) => {
|
828
835
|
this.contextService.update(context ?? {});
|
829
836
|
this.charges.next(charges ?? {});
|
830
837
|
this.pricePlans.next(pricePlans ?? {});
|
838
|
+
this.procedureContext.next(procedureContext ?? {});
|
831
839
|
if (lineItem) {
|
832
840
|
this.lineItem.next(lineItem);
|
833
841
|
}
|