@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,14 +1,14 @@
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 { isDefined, UUID, 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, ConfigurationProcessorTypes, EntityUtil, extractErrorDetails, 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
8
  import { tap, BehaviorSubject, map, switchMap, of, forkJoin, filter, Subject, noop, catchError, throwError, combineLatest, finalize, buffer, debounceTime, share, take, distinctUntilChanged, shareReplay, takeUntil } from 'rxjs';
9
+ import * as i1 from '@veloceapps/api/v2';
9
10
  import { flatten, omit, uniqBy, cloneDeep, assign, isEqual } from 'lodash';
10
11
  import { filter as filter$1, map as map$1, catchError as catchError$1, tap as tap$1, finalize as finalize$1 } from 'rxjs/operators';
11
- import * as i4 from '@veloceapps/api/v2';
12
12
  import * as i2 from 'primeng/api';
13
13
  import { NgControl } from '@angular/forms';
14
14
  import { DATE_PIPE_DEFAULT_OPTIONS, formatDate } from '@angular/common';
@@ -245,9 +245,9 @@ class FlowInfoService {
245
245
  var _a;
246
246
  return !!((_a = this.flow) === null || _a === void 0 ? void 0 : _a.properties.stateful);
247
247
  }
248
- constructor(runtimeSettingsService, templatesApiService, customizationService) {
248
+ constructor(runtimeSettingsService, templatesAdminApiService, customizationService) {
249
249
  this.runtimeSettingsService = runtimeSettingsService;
250
- this.templatesApiService = templatesApiService;
250
+ this.templatesAdminApiService = templatesAdminApiService;
251
251
  this.customizationService = customizationService;
252
252
  this.defaultTemplates = {
253
253
  flowEngine: 'Flow Engine',
@@ -305,7 +305,7 @@ class FlowInfoService {
305
305
  initFlowTemplates$() {
306
306
  var _a, _b, _c;
307
307
  return forkJoin([
308
- this.templatesApiService.fetchTemplates$(),
308
+ this.templatesAdminApiService.fetchTemplates$(),
309
309
  (_c = (_b = (_a = this.customizationService) === null || _a === void 0 ? void 0 : _a.getTemplates) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : of([]),
310
310
  ]).pipe(map(([templates, localTemplates]) => {
311
311
  var _a, _b;
@@ -352,12 +352,12 @@ class FlowInfoService {
352
352
  return objectName.toUpperCase();
353
353
  }
354
354
  }
355
- 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 });
355
+ 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 });
356
356
  FlowInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowInfoService });
357
357
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowInfoService, decorators: [{
358
358
  type: Injectable
359
359
  }], ctorParameters: function () {
360
- return [{ type: RuntimeSettingsService }, { type: i4.UITemplatesApiService }, { type: undefined, decorators: [{
360
+ return [{ type: RuntimeSettingsService }, { type: i1.UITemplatesAdminApiService }, { type: undefined, decorators: [{
361
361
  type: Optional
362
362
  }, {
363
363
  type: Inject,
@@ -418,21 +418,21 @@ class SalesTransactionService {
418
418
  this.stateSubj$.next(state);
419
419
  }
420
420
  }
421
- 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 });
421
+ 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 });
422
422
  SalesTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionService });
423
423
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionService, decorators: [{
424
424
  type: Injectable
425
- }], ctorParameters: function () { return [{ type: FlowInfoService }, { type: i4.SalesTransactionApiService }]; } });
425
+ }], ctorParameters: function () { return [{ type: FlowInfoService }, { type: i1.SalesTransactionApiService }]; } });
426
426
 
427
427
  class FlowConfigurationService {
428
- constructor(proceduresApiService, salesTransactionService) {
429
- this.proceduresApiService = proceduresApiService;
428
+ constructor(orchestrationsApiService, salesTransactionService) {
429
+ this.orchestrationsApiService = orchestrationsApiService;
430
430
  this.salesTransactionService = salesTransactionService;
431
431
  this.updatedSubj$ = new Subject();
432
432
  this.updated$ = this.updatedSubj$.asObservable();
433
433
  }
434
434
  calculate$(state) {
435
- return this.proceduresApiService.apply$({ salesTransaction: state }).pipe(tap(result => this.salesTransactionService.setState(result.salesTransaction)), map(noop));
435
+ return this.orchestrationsApiService.apply$({ salesTransaction: state }).pipe(tap(result => this.salesTransactionService.setState(result.salesTransaction)), map(noop));
436
436
  }
437
437
  calculate(state) {
438
438
  this.calculate$(state).subscribe();
@@ -482,11 +482,11 @@ class FlowConfigurationService {
482
482
  };
483
483
  }
484
484
  }
485
- 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 });
485
+ 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 });
486
486
  FlowConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService });
487
487
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, decorators: [{
488
488
  type: Injectable
489
- }], ctorParameters: function () { return [{ type: i4.ProceduresApiService }, { type: SalesTransactionService }]; } });
489
+ }], ctorParameters: function () { return [{ type: i1.OrchestrationsApiService }, { type: SalesTransactionService }]; } });
490
490
 
491
491
  class FlowStateService {
492
492
  constructor(flowConfiguration, flowInfoService, flowStateApiService, processorsApiService, salesTransactionApiService, salesTransactionService, toastService, customizationService) {
@@ -901,12 +901,12 @@ class FlowStateService {
901
901
  }
902
902
  }
903
903
  }
904
- 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 });
904
+ 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 });
905
905
  FlowStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateService });
906
906
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateService, decorators: [{
907
907
  type: Injectable
908
908
  }], ctorParameters: function () {
909
- return [{ type: FlowConfigurationService }, { type: FlowInfoService }, { type: i1.FlowStateApiService }, { type: i4.ConfigurationProcessorsApiService }, { type: i4.SalesTransactionApiService }, { type: SalesTransactionService }, { type: i6.ToastService }, { type: undefined, decorators: [{
909
+ return [{ type: FlowConfigurationService }, { type: FlowInfoService }, { type: i3.FlowStateApiService }, { type: i1.ConfigurationProcessorsApiService }, { type: i1.SalesTransactionApiService }, { type: SalesTransactionService }, { type: i6.ToastService }, { type: undefined, decorators: [{
910
910
  type: Optional
911
911
  }, {
912
912
  type: Inject,
@@ -980,8 +980,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
980
980
  }] });
981
981
 
982
982
  class ProductImagesService {
983
- constructor(productApiService) {
984
- this.productApiService = productApiService;
983
+ constructor(productsAdminApiService) {
984
+ this.productsAdminApiService = productsAdminApiService;
985
985
  this.imagesMap$ = new BehaviorSubject({});
986
986
  }
987
987
  getImageUrl$(productId) {
@@ -992,17 +992,17 @@ class ProductImagesService {
992
992
  return this.imagesMap$.pipe(map(imagesMap => { var _a; return (_a = imagesMap[productId]) !== null && _a !== void 0 ? _a : null; }), distinctUntilChanged());
993
993
  }
994
994
  fetchProductImage(productId) {
995
- this.productApiService
995
+ this.productsAdminApiService
996
996
  .fetchImage$(productId)
997
997
  .pipe(map(file => URL.createObjectURL(file)), catchError(() => of('')), tap(url => this.imagesMap$.next(Object.assign(Object.assign({}, this.imagesMap$.value), { [productId]: url }))))
998
998
  .subscribe();
999
999
  }
1000
1000
  }
1001
- ProductImagesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService, deps: [{ token: i1.ProductApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1001
+ ProductImagesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService, deps: [{ token: i1.ProductsAdminApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1002
1002
  ProductImagesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService });
1003
1003
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService, decorators: [{
1004
1004
  type: Injectable
1005
- }], ctorParameters: function () { return [{ type: i1.ProductApiService }]; } });
1005
+ }], ctorParameters: function () { return [{ type: i1.ProductsAdminApiService }]; } });
1006
1006
 
1007
1007
  class ConfigurationService {
1008
1008
  get state$() {
@@ -1021,12 +1021,12 @@ class ConfigurationService {
1021
1021
  var _a, _b;
1022
1022
  return (_b = (_a = this.configurationStateSubj$.getValue()) === null || _a === void 0 ? void 0 : _a.salesTransactionItems[0]) !== null && _b !== void 0 ? _b : null;
1023
1023
  }
1024
- constructor(flowInfoService, messageService, configurationRuntimeService, salesTransactionService, proceduresApiService) {
1024
+ constructor(flowInfoService, messageService, configurationRuntimeService, salesTransactionService, orchestrationsApiService) {
1025
1025
  this.flowInfoService = flowInfoService;
1026
1026
  this.messageService = messageService;
1027
1027
  this.configurationRuntimeService = configurationRuntimeService;
1028
1028
  this.salesTransactionService = salesTransactionService;
1029
- this.proceduresApiService = proceduresApiService;
1029
+ this.orchestrationsApiService = orchestrationsApiService;
1030
1030
  this.hasUnsavedChanges = false;
1031
1031
  this.configurationStateSubj$ = new BehaviorSubject(null);
1032
1032
  this.previousConfigurationStateSubj$ = new BehaviorSubject(null);
@@ -1085,7 +1085,7 @@ class ConfigurationService {
1085
1085
  salesTransaction,
1086
1086
  };
1087
1087
  this.isLoadingSubj$.next(true);
1088
- return this.proceduresApiService.apply$(request).pipe(tap$1(result => {
1088
+ return this.orchestrationsApiService.apply$(request).pipe(tap$1(result => {
1089
1089
  const newState = result.salesTransaction;
1090
1090
  this.configurationStateSubj$.next(newState);
1091
1091
  this.previousConfigurationStateSubj$.next(cloneDeep(newState));
@@ -1117,11 +1117,11 @@ class ConfigurationService {
1117
1117
  return pcmModel;
1118
1118
  }
1119
1119
  }
1120
- 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 });
1120
+ 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 });
1121
1121
  ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationService });
1122
1122
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationService, decorators: [{
1123
1123
  type: Injectable
1124
- }], ctorParameters: function () { return [{ type: FlowInfoService }, { type: i2.MessageService }, { type: ConfigurationRuntimeService }, { type: SalesTransactionService }, { type: i4.ProceduresApiService }]; } });
1124
+ }], ctorParameters: function () { return [{ type: FlowInfoService }, { type: i2.MessageService }, { type: ConfigurationRuntimeService }, { type: SalesTransactionService }, { type: i1.OrchestrationsApiService }]; } });
1125
1125
 
1126
1126
  class ConfigurationStateService {
1127
1127
  constructor(configurationRuntimeService, configurationService, flowStateService, flowInfoService, flowConfigurationService, flowStateApiService, salesTransactionService, salesTransactionApiService, toastService) {
@@ -1481,11 +1481,11 @@ class ConfigurationStateService {
1481
1481
  }, { stateId: '', selectors: {} });
1482
1482
  }
1483
1483
  }
1484
- 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 });
1484
+ 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 });
1485
1485
  ConfigurationStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationStateService });
1486
1486
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationStateService, decorators: [{
1487
1487
  type: Injectable
1488
- }], ctorParameters: function () { return [{ type: ConfigurationRuntimeService }, { type: ConfigurationService }, { type: FlowStateService }, { type: FlowInfoService }, { type: FlowConfigurationService }, { type: i1.FlowStateApiService }, { type: SalesTransactionService }, { type: i4.SalesTransactionApiService }, { type: i6.ToastService }]; } });
1488
+ }], ctorParameters: function () { return [{ type: ConfigurationRuntimeService }, { type: ConfigurationService }, { type: FlowStateService }, { type: FlowInfoService }, { type: FlowConfigurationService }, { type: i3.FlowStateApiService }, { type: SalesTransactionService }, { type: i1.SalesTransactionApiService }, { type: i6.ToastService }]; } });
1489
1489
 
1490
1490
  class ConfigurationModule {
1491
1491
  }