@veloceapps/sdk 11.0.0-87 → 11.0.0-89

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.
@@ -584,13 +584,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
584
584
  }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i3$1.RuntimeSettingsService }, { type: i3$1.FlowInfoService }]; } });
585
585
 
586
586
  class FlowService {
587
- constructor(integrationState, flowRouterService, configurationService, configurationStateService, flowDialogService, flowStateService) {
587
+ constructor(integrationState, flowRouterService, configurationService, configurationStateService, flowDialogService, flowStateService, flowInfoService) {
588
588
  this.integrationState = integrationState;
589
589
  this.flowRouterService = flowRouterService;
590
590
  this.configurationService = configurationService;
591
591
  this.configurationStateService = configurationStateService;
592
592
  this.flowDialogService = flowDialogService;
593
593
  this.flowStateService = flowStateService;
594
+ this.flowInfoService = flowInfoService;
594
595
  this.cleanup$ = new Subject();
595
596
  }
596
597
  cleanup() {
@@ -601,6 +602,7 @@ class FlowService {
601
602
  .listen$(FlowAction.FLOW_CONFIGURE_PRODUCT)
602
603
  .pipe(tap(payload => {
603
604
  if (payload.productId) {
605
+ this.flowInfoService.updateContext({ newProductQty: payload.qty });
604
606
  this.flowRouterService.navigateToProductConfiguration(payload.productId, payload.transactionItemId);
605
607
  }
606
608
  else {
@@ -665,11 +667,11 @@ class FlowService {
665
667
  .subscribe(productId => this.integrationState.patchState({ productId }));
666
668
  }
667
669
  }
668
- FlowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService, deps: [{ token: i5.IntegrationState }, { token: FlowRouterService }, { token: i3$1.ConfigurationService }, { token: i3$1.ConfigurationStateService }, { token: FlowDialogService }, { token: i3$1.FlowStateService }], target: i0.ɵɵFactoryTarget.Injectable });
670
+ FlowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService, deps: [{ token: i5.IntegrationState }, { token: FlowRouterService }, { token: i3$1.ConfigurationService }, { token: i3$1.ConfigurationStateService }, { token: FlowDialogService }, { token: i3$1.FlowStateService }, { token: i3$1.FlowInfoService }], target: i0.ɵɵFactoryTarget.Injectable });
669
671
  FlowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService });
670
672
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService, decorators: [{
671
673
  type: Injectable
672
- }], ctorParameters: function () { return [{ type: i5.IntegrationState }, { type: FlowRouterService }, { type: i3$1.ConfigurationService }, { type: i3$1.ConfigurationStateService }, { type: FlowDialogService }, { type: i3$1.FlowStateService }]; } });
674
+ }], ctorParameters: function () { return [{ type: i5.IntegrationState }, { type: FlowRouterService }, { type: i3$1.ConfigurationService }, { type: i3$1.ConfigurationStateService }, { type: FlowDialogService }, { type: i3$1.FlowStateService }, { type: i3$1.FlowInfoService }]; } });
673
675
 
674
676
  class FlowGuidedSellingService {
675
677
  constructor(integrationState) {