@veloceapps/sdk 11.0.0-12 → 11.0.0-121

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 (160) hide show
  1. package/cms/cms.actions.d.ts +94 -29
  2. package/cms/components/element-renderer/element-renderer.component.d.ts +3 -10
  3. package/cms/components/preview/preview.component.d.ts +5 -6
  4. package/cms/components/preview/preview.types.d.ts +0 -4
  5. package/cms/services/element-context.service.d.ts +0 -1
  6. package/cms/types/common.types.d.ts +2 -0
  7. package/cms/types/index.d.ts +0 -1
  8. package/cms/utils/path.utils.d.ts +1 -2
  9. package/cms/vendor-map.d.ts +17 -40
  10. package/core/index.d.ts +1 -1
  11. package/core/modules/configuration/index.d.ts +4 -4
  12. package/core/modules/configuration/services/configuration-runtime.service.d.ts +8 -17
  13. package/core/modules/configuration/services/configuration-state.service.d.ts +3 -3
  14. package/core/modules/configuration/services/configuration.service.d.ts +24 -47
  15. package/core/modules/configuration/services/guided-selling.service.d.ts +15 -0
  16. package/core/modules/configuration/services/test-mode-configuration.service.d.ts +26 -0
  17. package/core/modules/configuration/types/configuration-runtime.types.d.ts +0 -5
  18. package/core/modules/configuration/types/configuration.types.d.ts +4 -2
  19. package/core/modules/configuration/types/index.d.ts +2 -0
  20. package/core/modules/flow-configuration/index.d.ts +0 -3
  21. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +11 -17
  22. package/core/operators/filter-successful-execute.operator.d.ts +3 -0
  23. package/core/operators/index.d.ts +1 -0
  24. package/core/services/flow-info.service.d.ts +7 -5
  25. package/core/services/flow-state-configuration.service.d.ts +9 -8
  26. package/core/services/flow-state.service.d.ts +6 -15
  27. package/core/services/index.d.ts +1 -1
  28. package/core/services/integration.state.d.ts +1 -1
  29. package/core/services/product-images.service.d.ts +3 -3
  30. package/core/services/runtime-settings.service.d.ts +1 -1
  31. package/core/services/sales-transaction.service.d.ts +9 -10
  32. package/core/types/flow-customization.types.d.ts +2 -2
  33. package/core/types/index.d.ts +0 -1
  34. package/core/utils/index.d.ts +2 -2
  35. package/core/utils/transaction-item.utils.d.ts +7 -0
  36. package/core/utils/transaction-item.worker.d.ts +8 -0
  37. package/esm2020/cms/cms.actions.mjs +93 -71
  38. package/esm2020/cms/cms.default.mjs +2 -3
  39. package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +7 -64
  40. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
  41. package/esm2020/cms/components/preview/preview.component.mjs +19 -28
  42. package/esm2020/cms/components/preview/preview.types.mjs +1 -1
  43. package/esm2020/cms/services/element-context.service.mjs +1 -1
  44. package/esm2020/cms/types/common.types.mjs +1 -1
  45. package/esm2020/cms/types/index.mjs +1 -2
  46. package/esm2020/cms/utils/element.utils.mjs +3 -3
  47. package/esm2020/cms/utils/elements-resolver.mjs +16 -5
  48. package/esm2020/cms/utils/path.utils.mjs +1 -10
  49. package/esm2020/cms/vendor-map.mjs +17 -18
  50. package/esm2020/core/core.module.mjs +3 -6
  51. package/esm2020/core/index.mjs +2 -2
  52. package/esm2020/core/modules/configuration/configuration.module.mjs +17 -4
  53. package/esm2020/core/modules/configuration/index.mjs +5 -5
  54. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +16 -64
  55. package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +58 -58
  56. package/esm2020/core/modules/configuration/services/configuration.service.mjs +125 -229
  57. package/esm2020/core/modules/configuration/services/guided-selling.service.mjs +62 -0
  58. package/esm2020/core/modules/configuration/services/test-mode-configuration.service.mjs +97 -0
  59. package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +1 -1
  60. package/esm2020/core/modules/configuration/types/configuration.types.mjs +1 -1
  61. package/esm2020/core/modules/configuration/types/index.mjs +3 -0
  62. package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +3 -4
  63. package/esm2020/core/modules/flow-configuration/index.mjs +1 -4
  64. package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +31 -39
  65. package/esm2020/core/operators/filter-successful-execute.operator.mjs +5 -0
  66. package/esm2020/core/operators/index.mjs +2 -0
  67. package/esm2020/core/services/flow-info.service.mjs +20 -11
  68. package/esm2020/core/services/flow-state-configuration.service.mjs +55 -25
  69. package/esm2020/core/services/flow-state.service.mjs +34 -82
  70. package/esm2020/core/services/index.mjs +2 -2
  71. package/esm2020/core/services/integration.state.mjs +2 -2
  72. package/esm2020/core/services/product-images.service.mjs +8 -8
  73. package/esm2020/core/services/runtime-settings.service.mjs +3 -3
  74. package/esm2020/core/services/sales-transaction.service.mjs +18 -13
  75. package/esm2020/core/types/flow-customization.types.mjs +1 -1
  76. package/esm2020/core/types/index.mjs +1 -2
  77. package/esm2020/core/utils/index.mjs +3 -3
  78. package/esm2020/core/utils/transaction-item.utils.mjs +60 -0
  79. package/esm2020/core/utils/transaction-item.worker.mjs +16 -0
  80. package/esm2020/src/components/flow-header/flow-header.component.mjs +7 -8
  81. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +7 -8
  82. package/esm2020/src/flow-routing.module.mjs +10 -8
  83. package/esm2020/src/guards/flow.guard.mjs +5 -7
  84. package/esm2020/src/guards/product-unload.guard.mjs +7 -7
  85. package/esm2020/src/index.mjs +1 -2
  86. package/esm2020/src/pages/assets/assets.component.mjs +7 -8
  87. package/esm2020/src/pages/catalog/catalog.component.mjs +7 -8
  88. package/esm2020/src/pages/debug/debug.component.mjs +12 -17
  89. package/esm2020/src/pages/product/product.component.mjs +16 -70
  90. package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +5 -6
  91. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +7 -8
  92. package/esm2020/src/resolvers/pcm-model.resolver.mjs +12 -0
  93. package/esm2020/src/resolvers/sales-transaction.resolver.mjs +64 -0
  94. package/esm2020/src/resolvers/ui-definition.resolver.mjs +44 -0
  95. package/esm2020/src/services/flow-dialog.service.mjs +3 -24
  96. package/esm2020/src/services/flow-router.service.mjs +17 -24
  97. package/esm2020/src/services/flow.service.mjs +11 -17
  98. package/esm2020/src/types/index.mjs +2 -3
  99. package/esm2020/src/types/route.types.mjs +1 -1
  100. package/fesm2015/veloceapps-sdk-cms.mjs +162 -309
  101. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  102. package/fesm2015/veloceapps-sdk-core.mjs +571 -1166
  103. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  104. package/fesm2015/veloceapps-sdk.mjs +161 -242
  105. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  106. package/fesm2020/veloceapps-sdk-cms.mjs +158 -300
  107. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  108. package/fesm2020/veloceapps-sdk-core.mjs +631 -1197
  109. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  110. package/fesm2020/veloceapps-sdk.mjs +161 -239
  111. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  112. package/package.json +1 -1
  113. package/src/components/flow-header/flow-header.component.d.ts +3 -3
  114. package/src/components/guided-selling/guided-selling.component.d.ts +3 -3
  115. package/src/guards/product-unload.guard.d.ts +3 -3
  116. package/src/index.d.ts +0 -1
  117. package/src/pages/assets/assets.component.d.ts +3 -3
  118. package/src/pages/catalog/catalog.component.d.ts +3 -3
  119. package/src/pages/debug/debug.component.d.ts +2 -4
  120. package/src/pages/product/product.component.d.ts +5 -12
  121. package/src/pages/record-not-found/record-not-found.component.d.ts +2 -3
  122. package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -3
  123. package/src/resolvers/pcm-model.resolver.d.ts +3 -0
  124. package/src/resolvers/sales-transaction.resolver.d.ts +18 -0
  125. package/src/resolvers/ui-definition.resolver.d.ts +3 -0
  126. package/src/services/flow-dialog.service.d.ts +3 -5
  127. package/src/services/flow-router.service.d.ts +5 -5
  128. package/src/services/flow.service.d.ts +3 -3
  129. package/src/types/index.d.ts +1 -2
  130. package/src/types/route.types.d.ts +0 -5
  131. package/cms/plugins/configuration.plugin.d.ts +0 -23
  132. package/cms/types/configuration.types.d.ts +0 -21
  133. package/core/modules/configuration/helpers.d.ts +0 -7
  134. package/core/modules/configuration/services/runtime-context.service.d.ts +0 -12
  135. package/core/modules/flow-configuration/services/flow-update.service.d.ts +0 -13
  136. package/core/modules/flow-configuration/types/update.types.d.ts +0 -12
  137. package/core/services/quote-draft.service.d.ts +0 -50
  138. package/core/types/runtime.types.d.ts +0 -30
  139. package/core/utils/line-item.utils.d.ts +0 -25
  140. package/core/utils/line-item.worker.d.ts +0 -9
  141. package/esm2020/cms/plugins/configuration.plugin.mjs +0 -109
  142. package/esm2020/cms/types/configuration.types.mjs +0 -2
  143. package/esm2020/core/modules/configuration/helpers.mjs +0 -67
  144. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +0 -45
  145. package/esm2020/core/modules/flow-configuration/services/flow-update.service.mjs +0 -138
  146. package/esm2020/core/modules/flow-configuration/types/update.types.mjs +0 -2
  147. package/esm2020/core/services/quote-draft.service.mjs +0 -174
  148. package/esm2020/core/types/runtime.types.mjs +0 -16
  149. package/esm2020/core/utils/line-item.utils.mjs +0 -187
  150. package/esm2020/core/utils/line-item.worker.mjs +0 -19
  151. package/esm2020/src/resolvers/quote.resolver.mjs +0 -82
  152. package/esm2020/src/types/context-route.types.mjs +0 -2
  153. package/esm2020/src/types/metrics.types.mjs +0 -2
  154. package/esm2020/src/utils/flow.utils.mjs +0 -14
  155. package/esm2020/src/utils/index.mjs +0 -2
  156. package/src/resolvers/quote.resolver.d.ts +0 -18
  157. package/src/types/context-route.types.d.ts +0 -5
  158. package/src/types/metrics.types.d.ts +0 -5
  159. package/src/utils/flow.utils.d.ts +0 -1
  160. package/src/utils/index.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/sdk",
3
- "version": "11.0.0-12",
3
+ "version": "11.0.0-121",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "~15.2.0",
@@ -1,12 +1,12 @@
1
1
  import { OnDestroy } from '@angular/core';
2
- import { UITemplatesApiService } from '@veloceapps/api/v2';
2
+ import { UITemplatesAdminApiService } from '@veloceapps/api/v2';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
5
  import { FlowCustomization, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
6
6
  import { BehaviorSubject } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class FlowHeaderComponent implements OnDestroy {
9
- private templatesApi;
9
+ private templatesAdminApiService;
10
10
  private flowStateService;
11
11
  private flowInfo;
12
12
  private toastService;
@@ -14,7 +14,7 @@ export declare class FlowHeaderComponent implements OnDestroy {
14
14
  uiDefinition$: BehaviorSubject<UIDefinition | null>;
15
15
  private templateApiName;
16
16
  private destroy$;
17
- constructor(templatesApi: UITemplatesApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
17
+ constructor(templatesAdminApiService: UITemplatesAdminApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
18
18
  ngOnDestroy(): void;
19
19
  private initialize;
20
20
  private getLocalMeta$;
@@ -1,12 +1,12 @@
1
1
  import { OnDestroy } from '@angular/core';
2
- import { UITemplatesApiService } from '@veloceapps/api/v2';
2
+ import { UITemplatesAdminApiService } from '@veloceapps/api/v2';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
5
  import { FlowCustomization, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
6
6
  import { BehaviorSubject } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class GuidedSellingComponent implements OnDestroy {
9
- private templatesApi;
9
+ private templatesAdminApiService;
10
10
  private flowStateService;
11
11
  private flowInfo;
12
12
  private toastService;
@@ -14,7 +14,7 @@ export declare class GuidedSellingComponent implements OnDestroy {
14
14
  uiDefinition$: BehaviorSubject<UIDefinition | null>;
15
15
  private templateApiName;
16
16
  private destroy$;
17
- constructor(templatesApi: UITemplatesApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
17
+ constructor(templatesAdminApiService: UITemplatesAdminApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
18
18
  ngOnDestroy(): void;
19
19
  private initialize;
20
20
  private getLocalMeta$;
@@ -1,15 +1,15 @@
1
1
  import { Component } from '@angular/core';
2
2
  import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
3
- import { ConfigurationService, QuoteDraftService } from '@veloceapps/sdk/core';
3
+ import { ConfigurationService, FlowInfoService } from '@veloceapps/sdk/core';
4
4
  import { Observable } from 'rxjs';
5
5
  import { FlowDialogService } from '../services/flow-dialog.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ProductUnloadGuard {
8
8
  private router;
9
- private quoteDraftService;
9
+ private flowInfoService;
10
10
  private configurationService;
11
11
  private flowDialogService;
12
- constructor(router: Router, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowDialogService: FlowDialogService);
12
+ constructor(router: Router, flowInfoService: FlowInfoService, configurationService: ConfigurationService, flowDialogService: FlowDialogService);
13
13
  canDeactivate(_: Component, route: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean | UrlTree>;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductUnloadGuard, never>;
15
15
  static ɵprov: i0.ɵɵInjectableDeclaration<ProductUnloadGuard>;
package/src/index.d.ts CHANGED
@@ -2,4 +2,3 @@ export * from './constants';
2
2
  export * from './flow.module';
3
3
  export * from './services';
4
4
  export * from './types';
5
- export * from './utils';
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { UITemplatesApiService } from '@veloceapps/api/v2';
2
+ import { UITemplatesAdminApiService } from '@veloceapps/api/v2';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
5
  import { FlowCustomization, FlowInfoService } from '@veloceapps/sdk/core';
@@ -10,7 +10,7 @@ interface State {
10
10
  failure: boolean;
11
11
  }
12
12
  export declare class AssetsComponent implements OnInit, OnDestroy {
13
- private templatesApi;
13
+ private templatesAdminApiService;
14
14
  private cdr;
15
15
  private toastService;
16
16
  private flowInfo;
@@ -19,7 +19,7 @@ export declare class AssetsComponent implements OnInit, OnDestroy {
19
19
  state$: BehaviorSubject<State>;
20
20
  private templateApiName;
21
21
  private destroyed$;
22
- constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
22
+ constructor(templatesAdminApiService: UITemplatesAdminApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
23
23
  ngOnInit(): void;
24
24
  ngOnDestroy(): void;
25
25
  private getLocalMeta$;
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { UITemplatesApiService } from '@veloceapps/api/v2';
2
+ import { UITemplatesAdminApiService } from '@veloceapps/api/v2';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
5
  import { FlowCustomization, FlowInfoService } from '@veloceapps/sdk/core';
@@ -10,7 +10,7 @@ interface State {
10
10
  failure: boolean;
11
11
  }
12
12
  export declare class CatalogComponent implements OnInit, OnDestroy {
13
- private templatesApi;
13
+ private templatesAdminApiService;
14
14
  private cdr;
15
15
  private toastService;
16
16
  private flowInfo;
@@ -19,7 +19,7 @@ export declare class CatalogComponent implements OnInit, OnDestroy {
19
19
  state$: BehaviorSubject<State>;
20
20
  private templateApiName;
21
21
  private destroyed$;
22
- constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
22
+ constructor(templatesAdminApiService: UITemplatesAdminApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
23
23
  ngOnInit(): void;
24
24
  ngOnDestroy(): void;
25
25
  private getLocalMeta$;
@@ -1,21 +1,19 @@
1
1
  import { FormControl, FormGroup } from '@angular/forms';
2
2
  import { ActivatedRoute, Params, Router } from '@angular/router';
3
- import { FlowsApiService } from '@veloceapps/api';
3
+ import { FlowsApiService } from '@veloceapps/api/v2';
4
4
  import { Flow } from '@veloceapps/core';
5
- import { QuoteDraftService } from '@veloceapps/sdk/core';
6
5
  import { Observable } from 'rxjs';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class DebugComponent {
9
8
  private flowsApiService;
10
9
  private router;
11
10
  private activatedRoute;
12
- private quoteDraftService;
13
11
  form: FormGroup<{
14
12
  id: FormControl<string | null>;
15
13
  }>;
16
14
  selectedFlow?: Flow;
17
15
  flows$: Observable<Flow[]>;
18
- constructor(flowsApiService: FlowsApiService, router: Router, activatedRoute: ActivatedRoute, quoteDraftService: QuoteDraftService);
16
+ constructor(flowsApiService: FlowsApiService, router: Router, activatedRoute: ActivatedRoute);
19
17
  runFlow(): void;
20
18
  getQueryParamsString(params: Params): string;
21
19
  static ɵfac: i0.ɵɵFactoryDeclaration<DebugComponent, never>;
@@ -1,23 +1,16 @@
1
- import { UIDefinitionsApiService } from '@veloceapps/api/v2';
2
1
  import { UIDefinitionContainer } from '@veloceapps/core';
3
2
  import { CMSPreviewConfig } from '@veloceapps/sdk/cms';
4
- import { ConfigurationService, ConfigurationStateService, FlowCustomization, FlowInfoService, IntegrationState, SalesTransactionService } from '@veloceapps/sdk/core';
3
+ import { ConfigurationRuntimeService, ConfigurationStateService } from '@veloceapps/sdk/core';
5
4
  import { BehaviorSubject } from 'rxjs';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class ProductComponent {
8
- private configurationService;
7
+ private configurationRuntimeService;
9
8
  private configurationStateService;
10
- private salesTransactionService;
11
- private flowInfoService;
12
- private integrationState;
13
- private uiDefinitionsApiService;
14
- private customizationService?;
15
9
  config: CMSPreviewConfig;
16
10
  uiDefinitionContainer$: BehaviorSubject<UIDefinitionContainer | null>;
17
- constructor(configurationService: ConfigurationService, configurationStateService: ConfigurationStateService, salesTransactionService: SalesTransactionService, flowInfoService: FlowInfoService, integrationState: IntegrationState, uiDefinitionsApiService: UIDefinitionsApiService, customizationService?: FlowCustomization | undefined);
18
- private customizeUI$;
19
- private fetchUIDefinition$;
11
+ showNotFound$: BehaviorSubject<boolean>;
12
+ constructor(configurationRuntimeService: ConfigurationRuntimeService, configurationStateService: ConfigurationStateService);
20
13
  private init$;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, null, { optional: true; }]>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, never>;
22
15
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductComponent, "vl-flow-product", never, {}, {}, never, never, false, never>;
23
16
  }
@@ -1,13 +1,12 @@
1
- import { ActivatedRoute, Router } from '@angular/router';
1
+ import { Router } from '@angular/router';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class RecordNotFoundComponent {
4
4
  private router;
5
- private route;
6
5
  message: string;
7
6
  subMessage: string;
8
7
  type: string;
9
8
  details: string[];
10
- constructor(router: Router, route: ActivatedRoute);
9
+ constructor(router: Router);
11
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RecordNotFoundComponent, never>;
12
11
  static ɵcmp: i0.ɵɵComponentDeclaration<RecordNotFoundComponent, "vl-flow-record-not-found", never, {}, {}, never, never, false, never>;
13
12
  }
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { UITemplatesApiService } from '@veloceapps/api/v2';
2
+ import { UITemplatesAdminApiService } from '@veloceapps/api/v2';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
5
  import { FlowCustomization, FlowInfoService } from '@veloceapps/sdk/core';
@@ -10,7 +10,7 @@ interface State {
10
10
  failure: boolean;
11
11
  }
12
12
  export declare class ShoppingCartComponent implements OnInit, OnDestroy {
13
- private templatesApi;
13
+ private templatesAdminApiService;
14
14
  private cdr;
15
15
  private toastService;
16
16
  private flowInfo;
@@ -19,7 +19,7 @@ export declare class ShoppingCartComponent implements OnInit, OnDestroy {
19
19
  state$: BehaviorSubject<State>;
20
20
  private templateApiName;
21
21
  private destroyed$;
22
- constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
22
+ constructor(templatesAdminApiService: UITemplatesAdminApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
23
23
  ngOnInit(): void;
24
24
  ngOnDestroy(): void;
25
25
  private getLocalMeta$;
@@ -0,0 +1,3 @@
1
+ import { ResolveFn } from '@angular/router';
2
+ import { PCMModel } from '@veloceapps/core';
3
+ export declare const resolvePCMModel: ResolveFn<PCMModel>;
@@ -0,0 +1,18 @@
1
+ import { ActivatedRouteSnapshot, Router } from '@angular/router';
2
+ import { FlowInfoService, FlowStateService, SalesTransactionService } from '@veloceapps/sdk/core';
3
+ import { Observable } from 'rxjs';
4
+ import { FlowRouterService } from '../services/flow-router.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SalesTransactionResolver {
7
+ private router;
8
+ private routerService;
9
+ private flowInfoService;
10
+ private flowStateService;
11
+ private salesTransactionService;
12
+ constructor(router: Router, routerService: FlowRouterService, flowInfoService: FlowInfoService, flowStateService: FlowStateService, salesTransactionService: SalesTransactionService);
13
+ resolve(route: ActivatedRouteSnapshot): Observable<boolean>;
14
+ private checkDynamicNavigation$;
15
+ private getNavigateTo;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SalesTransactionResolver, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<SalesTransactionResolver>;
18
+ }
@@ -0,0 +1,3 @@
1
+ import { ResolveFn } from '@angular/router';
2
+ import { UIDefinitionContainer } from '@veloceapps/core';
3
+ export declare const resolveUIDefinition: ResolveFn<UIDefinitionContainer | null>;
@@ -3,6 +3,7 @@ import { DialogService } from 'primeng/dynamicdialog';
3
3
  import { Observable } from 'rxjs';
4
4
  import { FlowDialogConfig } from '../components/dialog/dialog.types';
5
5
  import * as i0 from "@angular/core";
6
+ export type FlowDialogFn = keyof Omit<FlowDialogService, 'show' | 'constructor'>;
6
7
  export declare class FlowDialogService {
7
8
  private dialogService;
8
9
  private runtimeSettings;
@@ -12,14 +13,11 @@ export declare class FlowDialogService {
12
13
  showEmptyCartDialog(): Observable<boolean>;
13
14
  showReadonlyModeDialog(): Observable<boolean>;
14
15
  showQuoteReadonlyModeDialog(): Observable<boolean>;
15
- showQuoteOutsideShoppingCartDialog(): Observable<boolean>;
16
+ showQuoteInConfiguratorDialog(): Observable<boolean>;
16
17
  showAccountNoChangesDialog(): Observable<boolean>;
17
18
  showUnsavedChangesDialog(): Observable<boolean>;
18
- showReadonlyQuoteSubmitFailureDialog(): Observable<boolean>;
19
- showOutsideShoppingCartQuoteSubmitFailureDialog(): Observable<boolean>;
20
- showAccountSubmitFailureDialog(): Observable<boolean>;
21
19
  showTermsLimitReachedDialog(): Observable<boolean>;
22
- showDialog(dialog: keyof Omit<FlowDialogService, 'show' | 'constructor'>): Observable<boolean>;
20
+ showDialog(dialog: FlowDialogFn): Observable<boolean>;
23
21
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogService, never>;
24
22
  static ɵprov: i0.ɵɵInjectableDeclaration<FlowDialogService>;
25
23
  }
@@ -1,18 +1,18 @@
1
1
  import { ActivatedRoute, ActivatedRouteSnapshot, Params, Router } from '@angular/router';
2
- import { FlowStateService, IntegrationState } from '@veloceapps/sdk/core';
2
+ import { FlowInfoService, IntegrationState } from '@veloceapps/sdk/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FlowRouterService {
6
6
  private router;
7
7
  private route;
8
8
  private integrationState;
9
- private flowStateService;
9
+ private flowInfoService;
10
10
  private routeChange$;
11
11
  private lastChildParams$;
12
12
  private lastChildRoute$;
13
13
  private urlHistory;
14
14
  loading$: Observable<boolean>;
15
- constructor(router: Router, route: ActivatedRoute, integrationState: IntegrationState, flowStateService: FlowStateService);
15
+ constructor(router: Router, route: ActivatedRoute, integrationState: IntegrationState, flowInfoService: FlowInfoService);
16
16
  getFlowRootRoute(route: ActivatedRouteSnapshot): ActivatedRouteSnapshot | undefined;
17
17
  getFlowRootPath(route: ActivatedRouteSnapshot): string;
18
18
  get route$(): Observable<ActivatedRouteSnapshot>;
@@ -30,8 +30,8 @@ export declare class FlowRouterService {
30
30
  isCatalogRoute$(): Observable<boolean>;
31
31
  isAssetsRoute$(): Observable<boolean>;
32
32
  navigateBack(): void;
33
- navigateTo(path: string, productId?: string, lineItemId?: string): void;
34
- navigateToProductConfiguration(productId: string, lineItemId?: string): void;
33
+ navigateTo(path: string, productId?: string, transactionItemId?: string): void;
34
+ navigateToProductConfiguration(productId: string, transactionItemId?: string): void;
35
35
  navigateToShoppingCart(): void;
36
36
  navigateToCatalog(): void;
37
37
  navigateToAssets(): void;
@@ -1,5 +1,5 @@
1
1
  import { IntegrationState } from '@veloceapps/sdk/cms';
2
- import { ConfigurationService, ConfigurationStateService, FlowStateService } from '@veloceapps/sdk/core';
2
+ import { ConfigurationService, ConfigurationStateService, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
3
3
  import { FlowDialogService } from './flow-dialog.service';
4
4
  import { FlowRouterService } from './flow-router.service';
5
5
  import * as i0 from "@angular/core";
@@ -10,12 +10,12 @@ export declare class FlowService {
10
10
  private configurationStateService;
11
11
  private flowDialogService;
12
12
  private flowStateService;
13
+ private flowInfoService;
13
14
  private cleanup$;
14
- constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService, configurationService: ConfigurationService, configurationStateService: ConfigurationStateService, flowDialogService: FlowDialogService, flowStateService: FlowStateService);
15
+ constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService, configurationService: ConfigurationService, configurationStateService: ConfigurationStateService, flowDialogService: FlowDialogService, flowStateService: FlowStateService, flowInfoService: FlowInfoService);
15
16
  cleanup(): void;
16
17
  initSubscriptions(): void;
17
18
  private updateFlowParams;
18
- private prepareConfiguration$;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowService, never>;
20
20
  static ɵprov: i0.ɵɵInjectableDeclaration<FlowService>;
21
21
  }
@@ -1,2 +1 @@
1
- export * from './context-route.types';
2
- export * from './metrics.types';
1
+ export * from './route.types';
@@ -1,9 +1,4 @@
1
1
  import { Route } from '@angular/router';
2
- export interface FlowObjectIdProperties {
3
- accountId?: string;
4
- quoteId?: string;
5
- orderId?: string;
6
- }
7
2
  export interface RouteWithId extends Route {
8
3
  id?: string;
9
4
  }
@@ -1,23 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { ElementComponent } from '../components/element.component';
3
- import { PluginComponent } from '../components/plugin.component';
4
- import { ConfigurationElement } from '../types';
5
- import * as i0 from "@angular/core";
6
- export declare class ConfigurationPlugin implements PluginComponent, OnDestroy {
7
- host: ElementComponent & ConfigurationElement;
8
- private modelSnapshot?;
9
- private destroy$;
10
- private elementMetadata;
11
- private configurationService;
12
- constructor(host: ElementComponent & ConfigurationElement);
13
- ngOnDestroy(): void;
14
- private register;
15
- private registerType;
16
- private registerPort;
17
- private registerAttribute;
18
- private get attributeHost();
19
- private get typeHost();
20
- private get portHost();
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPlugin, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<ConfigurationPlugin, never, never, {}, {}, never, never, false, never>;
23
- }
@@ -1,21 +0,0 @@
1
- import { LineItem, PortDomain } from '@veloceapps/core';
2
- import { Observable } from 'rxjs';
3
- export interface ConfigurationElement {
4
- boundName: string;
5
- }
6
- export interface TypeElement extends ConfigurationElement {
7
- updateQty: (qty: number) => void;
8
- remove: () => void;
9
- }
10
- export interface PortElement extends ConfigurationElement {
11
- portItems$: Observable<LineItem[]>;
12
- portDomain$: Observable<PortDomain | undefined>;
13
- addPortItem: (type: string, attributes: {
14
- name: string;
15
- value: any;
16
- }[]) => void;
17
- }
18
- export interface AttributeElement extends ConfigurationElement {
19
- value$: Observable<any | undefined>;
20
- patch: (value: any) => void;
21
- }
@@ -1,7 +0,0 @@
1
- import { ConfigurationContext, ConfigurationRequest, LineItem, UIDefinitionProps } from '@veloceapps/core';
2
- import { RuntimeContext } from '../../types';
3
- import { GuidedSellingSubmitData, NewConfigurationProps } from './types/configuration.types';
4
- export declare const getDefaultLineItem: (context: RuntimeContext, uiDefinitionProperties: UIDefinitionProps, qty?: number) => LineItem;
5
- export declare const generateEmptyContext: () => ConfigurationContext;
6
- export declare const getGuidedSellingConfigurationRequest: (data: GuidedSellingSubmitData) => ConfigurationRequest;
7
- export declare const generateConfigurationLineItem: (props: NewConfigurationProps, qty?: number) => LineItem;
@@ -1,12 +0,0 @@
1
- import { ConfigurationApiService } from '@veloceapps/api';
2
- import { Observable } from 'rxjs';
3
- import { RuntimeContext } from '../../../types';
4
- import * as i0 from "@angular/core";
5
- export declare class RuntimeContextService {
6
- private configurationApiService;
7
- constructor(configurationApiService: ConfigurationApiService);
8
- getRuntimeContext(productId: string, offeringId?: string, defaultUIDefinitionId?: string, requiredUIDefinitionId?: string): Observable<RuntimeContext>;
9
- private getUIDefinitionContainer;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeContextService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeContextService>;
12
- }
@@ -1,13 +0,0 @@
1
- import { Charge, LineItem } from '@veloceapps/core';
2
- import { Dictionary } from 'lodash';
3
- import { FlowUpdateParams } from '../types/update.types';
4
- import * as i0 from "@angular/core";
5
- export declare class FlowUpdateService {
6
- update(rootLineItems: LineItem[], updates: FlowUpdateParams[], charges?: Dictionary<Charge>): void;
7
- delete(lineItems: LineItem[], id: string): LineItem[];
8
- private applyLineItemUpdate;
9
- private applyChargeUpdate;
10
- private applyChargeGroupUpdate;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FlowUpdateService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<FlowUpdateService>;
13
- }
@@ -1,12 +0,0 @@
1
- export type FlowUpdateDataType = 'LINEITEM' | 'CHARGE' | 'GROUP_CHARGE';
2
- export type FlowUpdateAttributeType = 'QTY' | 'EFFECTIVE_START_DATE' | 'END_DATE' | 'PRICE_ADJUSTMENT' | 'LIST_PRICE_ADJUSTMENT' | 'COST_ADJUSTMENT' | 'MARGIN_ADJUSTMENT';
3
- export interface FlowUpdateParams {
4
- id: string;
5
- dataType: FlowUpdateDataType;
6
- attributeType: FlowUpdateAttributeType;
7
- newValue: any;
8
- }
9
- export interface FlowDeleteParams {
10
- id: string;
11
- dataType: FlowUpdateDataType;
12
- }
@@ -1,50 +0,0 @@
1
- import { AccountApiService } from '@veloceapps/api';
2
- import { AccountAssetsState, LineItem, PriceSummary, QuoteDraft } from '@veloceapps/core';
3
- import { Dictionary } from 'lodash';
4
- import { Observable } from 'rxjs';
5
- import { FlowInfoService } from './flow-info.service';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @deprecated
9
- */
10
- export declare class QuoteDraftService {
11
- private flowInfoService;
12
- private accountApiService;
13
- private quoteSubj$;
14
- private assetsSubj$;
15
- private resetSubj$;
16
- private isInitializedSubj$;
17
- private initialCurrentState;
18
- private _hasUnsavedChanges;
19
- get isInitialized$(): Observable<boolean>;
20
- get isInitialized(): boolean;
21
- set isInitialized(value: boolean);
22
- get hasUnsavedChanges(): boolean;
23
- set hasUnsavedChanges(value: boolean);
24
- get hasProducts$(): Observable<boolean>;
25
- get hasProducts(): boolean;
26
- get hasAssets$(): Observable<boolean>;
27
- get hasAssets(): boolean;
28
- get assetsState(): AccountAssetsState | null;
29
- reset$: Observable<boolean>;
30
- constructor(flowInfoService: FlowInfoService, accountApiService: AccountApiService);
31
- reset(): void;
32
- init(headerId: string, params: Dictionary<string>): Observable<void>;
33
- finalizeInit(): void;
34
- setCurrentLineItemState(lineItems: LineItem[]): void;
35
- updateQuoteDraft(update: Partial<QuoteDraft>): void;
36
- updateByPriceSummary(priceSummary: PriceSummary): void;
37
- setAssetsState(assetsState: AccountAssetsState): void;
38
- get quoteDraft$(): Observable<QuoteDraft>;
39
- get quoteDraft(): QuoteDraft | null;
40
- get currentState$(): Observable<LineItem[]>;
41
- get currentState(): LineItem[];
42
- get isStandalone(): boolean;
43
- get isStandalone$(): Observable<boolean>;
44
- getInitialCurrentState(): LineItem[];
45
- isEditMode$(): Observable<boolean>;
46
- isEditMode(): boolean;
47
- private markAsUpdated;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<QuoteDraftService, never>;
49
- static ɵprov: i0.ɵɵInjectableDeclaration<QuoteDraftService>;
50
- }
@@ -1,30 +0,0 @@
1
- import { ContextProperties, RuntimeModel, UIDefinitionContainer } from '@veloceapps/core';
2
- export declare enum RuntimeMode {
3
- TEST = 0,
4
- PROD = 1
5
- }
6
- export declare enum RuntimeOperation {
7
- INIT = "INIT",
8
- UPDATE = "UPDATE"
9
- }
10
- export declare enum RuntimeStep {
11
- START = "START",
12
- UPDATE = "UPDATE"
13
- }
14
- export interface InvocationContext {
15
- runtimeOperation?: RuntimeOperation;
16
- runtimeStep?: RuntimeStep;
17
- }
18
- export interface RuntimeContext {
19
- modelId: string;
20
- runtimeMode: RuntimeMode;
21
- runtimeModel: RuntimeModel;
22
- uiDefinitionContainer?: UIDefinitionContainer;
23
- productId?: string;
24
- productName?: string;
25
- productType?: string;
26
- properties?: ContextProperties;
27
- offeringId?: string;
28
- offeringInstanceId?: string;
29
- invocationContext?: InvocationContext;
30
- }
@@ -1,25 +0,0 @@
1
- import { Attribute, LineItem, NewAttribute, PortDomain } from '@veloceapps/core';
2
- import { Dictionary } from 'lodash';
3
- export declare const findLineItem: (id: string, lineItems: LineItem[]) => LineItem | undefined;
4
- export declare const findLineItemWithComparator: (lineItems: LineItem[], comparator: (li: LineItem) => boolean) => LineItem | undefined;
5
- export declare const insertLineItem: (lineItem: LineItem, parentId: string, toInsert: LineItem) => LineItem;
6
- export declare const removeLineItem: (lineItem: LineItem, idToRemove: string) => LineItem;
7
- export declare const replaceLineItem: (lineItem: LineItem, replaceTo: LineItem, skipCardinalityCalculation?: boolean) => LineItem;
8
- export declare const recalculateCardinalityVariables: (original: LineItem, updated: LineItem) => LineItem;
9
- export declare const mapAttributes: (attributes: Attribute[]) => Dictionary<any>;
10
- export declare const getAttributes: (attributes: Attribute[], names?: string[]) => Attribute[];
11
- export declare const upsertAttributes: (originalAttributes: Attribute[], attributesToUpsert: NewAttribute[]) => Attribute[];
12
- export declare const patchAttributes: (rootLineItem: LineItem, id: string, attrs: NewAttribute[], skipCardinalityCalculation?: boolean) => LineItem;
13
- export declare const getAttributeValue: (attributes: Attribute[], name: string) => any;
14
- export declare const generateLineItem: (port: string, type: string, parentId: string, attributes?: NewAttribute[], lineItems?: LineItem[]) => LineItem;
15
- export declare const getRecommendedPrices: (portDomain: PortDomain, type: string) => {
16
- net: number;
17
- list: number;
18
- };
19
- export declare const getOriginParent: (lineItems: LineItem[], currentLineItem: LineItem) => LineItem | undefined;
20
- export declare const assetPredicateFn: (lineItem: LineItem, assetId?: string) => boolean;
21
- export declare const multiplyLineItems: (lineItem: LineItem, qty: number, split: boolean) => LineItem[];
22
- export declare const isTechnicalAttribute: (name: string) => boolean;
23
- export declare const filterOutTechnicalAttributes: <T extends {
24
- name: string;
25
- }>(attributes: T[]) => T[];
@@ -1,9 +0,0 @@
1
- import { LineItem, NewAttribute } from '@veloceapps/core';
2
- export declare class LineItemWorker {
3
- li: LineItem;
4
- constructor(src: LineItem);
5
- insert(parentId: string, toInsert: LineItem): LineItemWorker;
6
- remove(id: string): LineItemWorker;
7
- replace(toReplace: LineItem, skipCardinalityCalculation?: boolean): LineItemWorker;
8
- patchAttribute(attrs: NewAttribute[], id?: string, skipCardinalityCalculation?: boolean): LineItemWorker;
9
- }