@veloceapps/sdk 11.0.0-88 → 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.
@@ -572,13 +572,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
572
572
  }], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: i3$1.IntegrationState }, { type: i3$1.FlowInfoService }]; } });
573
573
 
574
574
  class FlowService {
575
- constructor(integrationState, flowRouterService, configurationService, configurationStateService, flowDialogService, flowStateService) {
575
+ constructor(integrationState, flowRouterService, configurationService, configurationStateService, flowDialogService, flowStateService, flowInfoService) {
576
576
  this.integrationState = integrationState;
577
577
  this.flowRouterService = flowRouterService;
578
578
  this.configurationService = configurationService;
579
579
  this.configurationStateService = configurationStateService;
580
580
  this.flowDialogService = flowDialogService;
581
581
  this.flowStateService = flowStateService;
582
+ this.flowInfoService = flowInfoService;
582
583
  this.cleanup$ = new Subject();
583
584
  }
584
585
  cleanup() {
@@ -589,6 +590,7 @@ class FlowService {
589
590
  .listen$(FlowAction.FLOW_CONFIGURE_PRODUCT)
590
591
  .pipe(tap(payload => {
591
592
  if (payload.productId) {
593
+ this.flowInfoService.updateContext({ newProductQty: payload.qty });
592
594
  this.flowRouterService.navigateToProductConfiguration(payload.productId, payload.transactionItemId);
593
595
  }
594
596
  else {
@@ -653,11 +655,11 @@ class FlowService {
653
655
  .subscribe(productId => this.integrationState.patchState({ productId }));
654
656
  }
655
657
  }
656
- 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 });
658
+ 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 });
657
659
  FlowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService });
658
660
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService, decorators: [{
659
661
  type: Injectable
660
- }], ctorParameters: function () { return [{ type: i5.IntegrationState }, { type: FlowRouterService }, { type: i3$1.ConfigurationService }, { type: i3$1.ConfigurationStateService }, { type: FlowDialogService }, { type: i3$1.FlowStateService }]; } });
662
+ }], 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 }]; } });
661
663
 
662
664
  class FlowGuidedSellingService {
663
665
  constructor(integrationState) {