@veloceapps/sdk 11.0.0-27 → 11.0.0-29

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.
Files changed (42) hide show
  1. package/cms/vendor-map.d.ts +5 -6
  2. package/core/modules/configuration/services/configuration-runtime.service.d.ts +1 -1
  3. package/core/modules/configuration/services/configuration.service.d.ts +3 -3
  4. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +3 -3
  5. package/core/services/flow-info.service.d.ts +3 -3
  6. package/core/services/product-images.service.d.ts +3 -3
  7. package/core/services/runtime-settings.service.d.ts +1 -1
  8. package/core/types/flow-customization.types.d.ts +2 -2
  9. package/esm2020/cms/vendor-map.mjs +6 -7
  10. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +3 -3
  11. package/esm2020/core/modules/configuration/services/configuration.service.mjs +7 -7
  12. package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +7 -7
  13. package/esm2020/core/services/flow-info.service.mjs +7 -7
  14. package/esm2020/core/services/product-images.service.mjs +8 -8
  15. package/esm2020/core/services/runtime-settings.service.mjs +3 -3
  16. package/esm2020/core/types/flow-customization.types.mjs +1 -1
  17. package/esm2020/src/components/flow-header/flow-header.component.mjs +7 -7
  18. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +7 -7
  19. package/esm2020/src/pages/assets/assets.component.mjs +7 -7
  20. package/esm2020/src/pages/catalog/catalog.component.mjs +7 -7
  21. package/esm2020/src/pages/debug/debug.component.mjs +3 -3
  22. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +7 -7
  23. package/esm2020/src/resolvers/ui-definition.resolver.mjs +7 -7
  24. package/fesm2015/veloceapps-sdk-cms.mjs +5 -6
  25. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  26. package/fesm2015/veloceapps-sdk-core.mjs +28 -28
  27. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  28. package/fesm2015/veloceapps-sdk.mjs +32 -33
  29. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  30. package/fesm2020/veloceapps-sdk-cms.mjs +5 -6
  31. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  32. package/fesm2020/veloceapps-sdk-core.mjs +28 -28
  33. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  34. package/fesm2020/veloceapps-sdk.mjs +32 -33
  35. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  36. package/package.json +1 -1
  37. package/src/components/flow-header/flow-header.component.d.ts +3 -3
  38. package/src/components/guided-selling/guided-selling.component.d.ts +3 -3
  39. package/src/pages/assets/assets.component.d.ts +3 -3
  40. package/src/pages/catalog/catalog.component.d.ts +3 -3
  41. package/src/pages/debug/debug.component.d.ts +1 -1
  42. package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -3
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, InjectionToken, Optional, Inject, NgModule, inject, Directive, Input, LOCALE_ID, Pipe } from '@angular/core';
3
3
  import { DEFAULT_CURRENCY_ISO_CODE, DEFAULT_CURRENCY_SYMBOL, validateDateFormat, DEFAULT_DATE_FORMAT, DEFAULT_DECIMALS_COUNT, getSupportedDateFormats, DEFAULT_DECIMAL_SEPARATOR, DEFAULT_THOUSANDS_SEPARATOR, DEFAULT_ACTION_CODE_LABELS, parseJsonSafely, UITemplateType, SalesforceIdUtils, isDefined, UUID, extractErrorDetails, ConfigurationProcessorTypes, EntityUtil, DEFAULT_TIME_FORMAT, formatNumber } from '@veloceapps/core';
4
- import * as i1 from '@veloceapps/api';
4
+ import * as i3 from '@veloceapps/api';
5
5
  import { ApiModule } from '@veloceapps/api';
6
6
  import * as i6 from '@veloceapps/components';
7
7
  import { ToastType, ConfirmationDialogModule } from '@veloceapps/components';
8
+ import * as i1 from '@veloceapps/api/v2';
8
9
  import { tap, BehaviorSubject, map, switchMap, of, forkJoin, throwError, noop, filter as filter$1, Subject, catchError as catchError$1, combineLatest, finalize as finalize$1, buffer, debounceTime, share, take, distinctUntilChanged, shareReplay, takeUntil } from 'rxjs';
9
- import * as i4 from '@veloceapps/api/v2';
10
10
  import { uniqBy, flatten, omit, cloneDeep, assign, isEqual } from 'lodash';
11
11
  import * as i2 from 'primeng/api';
12
12
  import { filter, map as map$1, catchError, tap as tap$1, finalize } from 'rxjs/operators';
@@ -170,9 +170,9 @@ class FlowInfoService {
170
170
  get isStateful() {
171
171
  return !!this.flow?.properties.stateful;
172
172
  }
173
- constructor(runtimeSettingsService, templatesApiService, customizationService) {
173
+ constructor(runtimeSettingsService, templatesAdminApiService, customizationService) {
174
174
  this.runtimeSettingsService = runtimeSettingsService;
175
- this.templatesApiService = templatesApiService;
175
+ this.templatesAdminApiService = templatesAdminApiService;
176
176
  this.customizationService = customizationService;
177
177
  this.defaultTemplates = {
178
178
  flowEngine: 'Flow Engine',
@@ -235,7 +235,7 @@ class FlowInfoService {
235
235
  }
236
236
  initFlowTemplates$() {
237
237
  return forkJoin([
238
- this.templatesApiService.fetchTemplates$(),
238
+ this.templatesAdminApiService.fetchTemplates$(),
239
239
  this.customizationService?.getTemplates?.() ?? of([]),
240
240
  ]).pipe(map(([templates, localTemplates]) => {
241
241
  const newValue = {};
@@ -281,11 +281,11 @@ class FlowInfoService {
281
281
  return objectName.toUpperCase();
282
282
  }
283
283
  }
284
- FlowInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowInfoService, deps: [{ token: RuntimeSettingsService }, { token: i4.UITemplatesApiService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
284
+ FlowInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowInfoService, deps: [{ token: RuntimeSettingsService }, { token: i1.UITemplatesAdminApiService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
285
285
  FlowInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowInfoService });
286
286
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowInfoService, decorators: [{
287
287
  type: Injectable
288
- }], ctorParameters: function () { return [{ type: RuntimeSettingsService }, { type: i4.UITemplatesApiService }, { type: undefined, decorators: [{
288
+ }], ctorParameters: function () { return [{ type: RuntimeSettingsService }, { type: i1.UITemplatesAdminApiService }, { type: undefined, decorators: [{
289
289
  type: Optional
290
290
  }, {
291
291
  type: Inject,
@@ -389,12 +389,12 @@ class ConfigurationService {
389
389
  get root() {
390
390
  return this.configurationStateSubj$.getValue()?.salesTransactionItems[0] ?? null;
391
391
  }
392
- constructor(flowInfoService, messageService, configurationRuntimeService, salesTransactionService, proceduresApiService) {
392
+ constructor(flowInfoService, messageService, configurationRuntimeService, salesTransactionService, orchestrationsApiService) {
393
393
  this.flowInfoService = flowInfoService;
394
394
  this.messageService = messageService;
395
395
  this.configurationRuntimeService = configurationRuntimeService;
396
396
  this.salesTransactionService = salesTransactionService;
397
- this.proceduresApiService = proceduresApiService;
397
+ this.orchestrationsApiService = orchestrationsApiService;
398
398
  this.hasUnsavedChanges = false;
399
399
  this.configurationStateSubj$ = new BehaviorSubject(null);
400
400
  this.previousConfigurationStateSubj$ = new BehaviorSubject(null);
@@ -458,7 +458,7 @@ class ConfigurationService {
458
458
  salesTransaction,
459
459
  };
460
460
  this.isLoadingSubj$.next(true);
461
- return this.proceduresApiService.apply$(request).pipe(tap$1(result => {
461
+ return this.orchestrationsApiService.apply$(request).pipe(tap$1(result => {
462
462
  const newState = result.salesTransaction;
463
463
  this.configurationStateSubj$.next(newState);
464
464
  this.previousConfigurationStateSubj$.next(cloneDeep(newState));
@@ -490,11 +490,11 @@ class ConfigurationService {
490
490
  return pcmModel;
491
491
  }
492
492
  }
493
- ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationService, deps: [{ token: FlowInfoService }, { token: i2.MessageService }, { token: ConfigurationRuntimeService }, { token: SalesTransactionService }, { token: i4.ProceduresApiService }], target: i0.ɵɵFactoryTarget.Injectable });
493
+ ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationService, deps: [{ token: FlowInfoService }, { token: i2.MessageService }, { token: ConfigurationRuntimeService }, { token: SalesTransactionService }, { token: i1.OrchestrationsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
494
494
  ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationService });
495
495
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationService, decorators: [{
496
496
  type: Injectable
497
- }], ctorParameters: function () { return [{ type: FlowInfoService }, { type: i2.MessageService }, { type: ConfigurationRuntimeService }, { type: SalesTransactionService }, { type: i4.ProceduresApiService }]; } });
497
+ }], ctorParameters: function () { return [{ type: FlowInfoService }, { type: i2.MessageService }, { type: ConfigurationRuntimeService }, { type: SalesTransactionService }, { type: i1.OrchestrationsApiService }]; } });
498
498
 
499
499
  class SalesTransactionService {
500
500
  get isInitialized$() {
@@ -547,21 +547,21 @@ class SalesTransactionService {
547
547
  this.stateSubj$.next(state);
548
548
  }
549
549
  }
550
- SalesTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionService, deps: [{ token: FlowInfoService }, { token: i4.SalesTransactionApiService }], target: i0.ɵɵFactoryTarget.Injectable });
550
+ SalesTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionService, deps: [{ token: FlowInfoService }, { token: i1.SalesTransactionApiService }], target: i0.ɵɵFactoryTarget.Injectable });
551
551
  SalesTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionService });
552
552
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionService, decorators: [{
553
553
  type: Injectable
554
- }], ctorParameters: function () { return [{ type: FlowInfoService }, { type: i4.SalesTransactionApiService }]; } });
554
+ }], ctorParameters: function () { return [{ type: FlowInfoService }, { type: i1.SalesTransactionApiService }]; } });
555
555
 
556
556
  class FlowConfigurationService {
557
- constructor(proceduresApiService, salesTransactionService) {
558
- this.proceduresApiService = proceduresApiService;
557
+ constructor(orchestrationsApiService, salesTransactionService) {
558
+ this.orchestrationsApiService = orchestrationsApiService;
559
559
  this.salesTransactionService = salesTransactionService;
560
560
  this.updatedSubj$ = new Subject();
561
561
  this.updated$ = this.updatedSubj$.asObservable();
562
562
  }
563
563
  calculate$(state) {
564
- return this.proceduresApiService.apply$({ salesTransaction: state }).pipe(tap(result => this.salesTransactionService.setState(result.salesTransaction)), map(noop));
564
+ return this.orchestrationsApiService.apply$({ salesTransaction: state }).pipe(tap(result => this.salesTransactionService.setState(result.salesTransaction)), map(noop));
565
565
  }
566
566
  calculate(state) {
567
567
  this.calculate$(state).subscribe();
@@ -610,11 +610,11 @@ class FlowConfigurationService {
610
610
  };
611
611
  }
612
612
  }
613
- FlowConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, deps: [{ token: i4.ProceduresApiService }, { token: SalesTransactionService }], target: i0.ɵɵFactoryTarget.Injectable });
613
+ FlowConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, deps: [{ token: i1.OrchestrationsApiService }, { token: SalesTransactionService }], target: i0.ɵɵFactoryTarget.Injectable });
614
614
  FlowConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService });
615
615
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, decorators: [{
616
616
  type: Injectable
617
- }], ctorParameters: function () { return [{ type: i4.ProceduresApiService }, { type: SalesTransactionService }]; } });
617
+ }], ctorParameters: function () { return [{ type: i1.OrchestrationsApiService }, { type: SalesTransactionService }]; } });
618
618
 
619
619
  class FlowStateService {
620
620
  constructor(flowConfiguration, flowInfoService, flowStateApiService, processorsApiService, salesTransactionApiService, salesTransactionService, toastService, customizationService) {
@@ -1014,11 +1014,11 @@ class FlowStateService {
1014
1014
  }
1015
1015
  }
1016
1016
  }
1017
- FlowStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateService, deps: [{ token: FlowConfigurationService }, { token: FlowInfoService }, { token: i1.FlowStateApiService }, { token: i4.ConfigurationProcessorsApiService }, { token: i4.SalesTransactionApiService }, { token: SalesTransactionService }, { token: i6.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1017
+ FlowStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateService, deps: [{ token: FlowConfigurationService }, { token: FlowInfoService }, { token: i3.FlowStateApiService }, { token: i1.ConfigurationProcessorsApiService }, { token: i1.SalesTransactionApiService }, { token: SalesTransactionService }, { token: i6.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1018
1018
  FlowStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateService });
1019
1019
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateService, decorators: [{
1020
1020
  type: Injectable
1021
- }], ctorParameters: function () { return [{ type: FlowConfigurationService }, { type: FlowInfoService }, { type: i1.FlowStateApiService }, { type: i4.ConfigurationProcessorsApiService }, { type: i4.SalesTransactionApiService }, { type: SalesTransactionService }, { type: i6.ToastService }, { type: undefined, decorators: [{
1021
+ }], ctorParameters: function () { return [{ type: FlowConfigurationService }, { type: FlowInfoService }, { type: i3.FlowStateApiService }, { type: i1.ConfigurationProcessorsApiService }, { type: i1.SalesTransactionApiService }, { type: SalesTransactionService }, { type: i6.ToastService }, { type: undefined, decorators: [{
1022
1022
  type: Optional
1023
1023
  }, {
1024
1024
  type: Inject,
@@ -1090,8 +1090,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1090
1090
  }] });
1091
1091
 
1092
1092
  class ProductImagesService {
1093
- constructor(productApiService) {
1094
- this.productApiService = productApiService;
1093
+ constructor(productsAdminApiService) {
1094
+ this.productsAdminApiService = productsAdminApiService;
1095
1095
  this.imagesMap$ = new BehaviorSubject({});
1096
1096
  }
1097
1097
  getImageUrl$(productId) {
@@ -1102,17 +1102,17 @@ class ProductImagesService {
1102
1102
  return this.imagesMap$.pipe(map(imagesMap => imagesMap[productId] ?? null), distinctUntilChanged());
1103
1103
  }
1104
1104
  fetchProductImage(productId) {
1105
- this.productApiService
1105
+ this.productsAdminApiService
1106
1106
  .fetchImage$(productId)
1107
1107
  .pipe(map(file => URL.createObjectURL(file)), catchError$1(() => of('')), tap(url => this.imagesMap$.next({ ...this.imagesMap$.value, [productId]: url })))
1108
1108
  .subscribe();
1109
1109
  }
1110
1110
  }
1111
- ProductImagesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService, deps: [{ token: i1.ProductApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1111
+ ProductImagesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService, deps: [{ token: i1.ProductsAdminApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1112
1112
  ProductImagesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService });
1113
1113
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService, decorators: [{
1114
1114
  type: Injectable
1115
- }], ctorParameters: function () { return [{ type: i1.ProductApiService }]; } });
1115
+ }], ctorParameters: function () { return [{ type: i1.ProductsAdminApiService }]; } });
1116
1116
 
1117
1117
  class ConfigurationStateService {
1118
1118
  constructor(configurationRuntimeService, configurationService, flowStateService, flowInfoService, flowConfigurationService, flowStateApiService, salesTransactionService, salesTransactionApiService, toastService) {
@@ -1458,11 +1458,11 @@ class ConfigurationStateService {
1458
1458
  }, { stateId: '', selectors: {} });
1459
1459
  }
1460
1460
  }
1461
- ConfigurationStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationStateService, deps: [{ token: ConfigurationRuntimeService }, { token: ConfigurationService }, { token: FlowStateService }, { token: FlowInfoService }, { token: FlowConfigurationService }, { token: i1.FlowStateApiService }, { token: SalesTransactionService }, { token: i4.SalesTransactionApiService }, { token: i6.ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
1461
+ ConfigurationStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationStateService, deps: [{ token: ConfigurationRuntimeService }, { token: ConfigurationService }, { token: FlowStateService }, { token: FlowInfoService }, { token: FlowConfigurationService }, { token: i3.FlowStateApiService }, { token: SalesTransactionService }, { token: i1.SalesTransactionApiService }, { token: i6.ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
1462
1462
  ConfigurationStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationStateService });
1463
1463
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationStateService, decorators: [{
1464
1464
  type: Injectable
1465
- }], ctorParameters: function () { return [{ type: ConfigurationRuntimeService }, { type: ConfigurationService }, { type: FlowStateService }, { type: FlowInfoService }, { type: FlowConfigurationService }, { type: i1.FlowStateApiService }, { type: SalesTransactionService }, { type: i4.SalesTransactionApiService }, { type: i6.ToastService }]; } });
1465
+ }], ctorParameters: function () { return [{ type: ConfigurationRuntimeService }, { type: ConfigurationService }, { type: FlowStateService }, { type: FlowInfoService }, { type: FlowConfigurationService }, { type: i3.FlowStateApiService }, { type: SalesTransactionService }, { type: i1.SalesTransactionApiService }, { type: i6.ToastService }]; } });
1466
1466
 
1467
1467
  class ConfigurationModule {
1468
1468
  }