@veloceapps/sdk 8.0.0-33 → 8.0.0-35

Sign up to get free protection for your applications and to get access to all the features.
@@ -673,6 +673,7 @@ class ConfigurationService {
673
673
  this.lineItem = new BehaviorSubject(undefined);
674
674
  this.charges = new BehaviorSubject({});
675
675
  this.pricePlans = new BehaviorSubject({});
676
+ this.procedureContext = new BehaviorSubject({});
676
677
  this.isLoadingSubj$ = new BehaviorSubject(false);
677
678
  this.isLoading$ = this.isLoadingSubj$.asObservable();
678
679
  this.hasUnsavedChanges = false;
@@ -749,6 +750,12 @@ class ConfigurationService {
749
750
  get pricePlansSnapshot() {
750
751
  return this.pricePlans.value;
751
752
  }
753
+ get procedureContext$() {
754
+ return this.procedureContext.asObservable();
755
+ }
756
+ get procedureContextSnapshot() {
757
+ return this.procedureContext.value;
758
+ }
752
759
  configure() {
753
760
  return this.configureRequest$(this.generateRequest());
754
761
  }
@@ -760,10 +767,11 @@ class ConfigurationService {
760
767
  const mainPricingEnabled = (_a = runtimeContext.properties) === null || _a === void 0 ? void 0 : _a.PricingEnabled;
761
768
  const pricingEnabled = mainPricingEnabled ? mainPricingEnabled === 'true' : uiDefinitionProperties.pricingEnabled;
762
769
  this.isLoadingSubj$.next(true);
763
- return this.configurationApiService.configureLineItem({ configurationRequest, runtimeModel, pricingEnabled }).pipe(tap(({ lineItem, context, charges, pricePlans, deletedLineItems }) => {
770
+ return this.configurationApiService.configureLineItem({ configurationRequest, runtimeModel, pricingEnabled }).pipe(tap(({ lineItem, context, charges, pricePlans, deletedLineItems, procedureContext }) => {
764
771
  this.contextService.update(context !== null && context !== void 0 ? context : {});
765
772
  this.charges.next(charges !== null && charges !== void 0 ? charges : {});
766
773
  this.pricePlans.next(pricePlans !== null && pricePlans !== void 0 ? pricePlans : {});
774
+ this.procedureContext.next(procedureContext !== null && procedureContext !== void 0 ? procedureContext : {});
767
775
  if (lineItem) {
768
776
  this.lineItem.next(lineItem);
769
777
  }