@veloceapps/sdk 11.0.0-11 → 11.0.0-13
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.
- package/cms/vendor-map.d.ts +7 -6
- package/core/modules/configuration/helpers.d.ts +2 -1
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +1 -3
- package/core/modules/configuration/services/configuration-state.service.d.ts +7 -7
- package/core/modules/configuration/services/configuration.service.d.ts +5 -10
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +11 -32
- package/core/services/catalog-products.service.d.ts +11 -0
- package/core/services/flow-info.service.d.ts +23 -10
- package/core/services/flow-state.service.d.ts +9 -12
- package/core/services/index.d.ts +2 -2
- package/core/services/quote-draft.service.d.ts +5 -5
- package/core/services/sales-transaction.service.d.ts +28 -0
- package/core/types/flow-state.types.d.ts +2 -2
- package/esm2020/cms/vendor-map.mjs +8 -7
- package/esm2020/core/core.module.mjs +7 -4
- package/esm2020/core/modules/configuration/helpers.mjs +11 -17
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +8 -45
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +46 -54
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +21 -39
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +34 -110
- package/esm2020/core/services/catalog-products.service.mjs +25 -0
- package/esm2020/core/services/flow-info.service.mjs +70 -28
- package/esm2020/core/services/flow-state.service.mjs +59 -133
- package/esm2020/core/services/index.mjs +3 -3
- package/esm2020/core/services/quote-draft.service.mjs +20 -38
- package/esm2020/core/services/sales-transaction.service.mjs +62 -0
- package/esm2020/core/types/flow-state.types.mjs +1 -1
- package/esm2020/src/components/flow-header/flow-header.component.mjs +3 -6
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +3 -6
- package/esm2020/src/flow-routing.module.mjs +5 -36
- package/esm2020/src/flow.component.mjs +5 -5
- package/esm2020/src/guards/flow.guard.mjs +10 -9
- package/esm2020/src/guards/product-unload.guard.mjs +5 -7
- package/esm2020/src/index.mjs +1 -2
- package/esm2020/src/pages/assets/assets.component.mjs +3 -3
- package/esm2020/src/pages/catalog/catalog.component.mjs +3 -3
- package/esm2020/src/pages/debug/debug.component.mjs +7 -11
- package/esm2020/src/pages/product/product.component.mjs +47 -67
- package/esm2020/src/pages/product/product.module.mjs +5 -5
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +3 -3
- package/esm2020/src/resolvers/flow.resolver.mjs +10 -18
- package/esm2020/src/resolvers/quote.resolver.mjs +11 -11
- package/esm2020/src/services/flow-dialog.service.mjs +8 -8
- package/esm2020/src/services/flow-router.service.mjs +11 -21
- package/esm2020/src/services/flow.service.mjs +10 -43
- package/esm2020/src/utils/flow.utils.mjs +2 -13
- package/fesm2015/veloceapps-sdk-cms.mjs +7 -6
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +1483 -1636
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +126 -672
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +7 -6
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +1515 -1707
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +124 -667
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/flow-header/flow-header.component.d.ts +1 -1
- package/src/components/guided-selling/guided-selling.component.d.ts +1 -1
- package/src/flow-routing.module.d.ts +1 -2
- package/src/flow.component.d.ts +2 -2
- package/src/guards/product-unload.guard.d.ts +4 -5
- package/src/index.d.ts +0 -1
- package/src/pages/assets/assets.component.d.ts +1 -1
- package/src/pages/catalog/catalog.component.d.ts +1 -1
- package/src/pages/debug/debug.component.d.ts +2 -3
- package/src/pages/product/product.component.d.ts +9 -10
- package/src/pages/product/product.module.d.ts +1 -1
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +1 -1
- package/src/resolvers/flow.resolver.d.ts +5 -6
- package/src/resolvers/quote.resolver.d.ts +5 -6
- package/src/services/flow-dialog.service.d.ts +3 -3
- package/src/services/flow-router.service.d.ts +2 -4
- package/src/services/flow.service.d.ts +2 -6
- package/src/utils/flow.utils.d.ts +0 -7
- package/core/services/context.service.d.ts +0 -23
- package/esm2020/core/services/context.service.mjs +0 -91
- package/esm2020/src/guards/context.guard.mjs +0 -91
- package/esm2020/src/guards/index.mjs +0 -2
- package/esm2020/src/pages/remote/remote.component.mjs +0 -342
- package/esm2020/src/pages/remote/remote.module.mjs +0 -20
- package/esm2020/src/pages/remote/remote.types.mjs +0 -2
- package/src/guards/context.guard.d.ts +0 -19
- package/src/guards/index.d.ts +0 -1
- package/src/pages/remote/remote.component.d.ts +0 -46
- package/src/pages/remote/remote.module.d.ts +0 -10
- package/src/pages/remote/remote.types.d.ts +0 -4
package/cms/vendor-map.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DataSource } from '@angular/cdk/collections';
|
|
2
2
|
import * as angularCore from '@angular/core';
|
|
3
3
|
import * as angularForms from '@angular/forms';
|
|
4
|
-
import { CatalogApiService, ConfigurationSettingsApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, GuidedSellingApiService, PicklistsApiService, PriceApiService,
|
|
4
|
+
import { CatalogApiService, ConfigurationSettingsApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, GuidedSellingApiService, PicklistsApiService, PriceApiService, RampApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
|
|
5
|
+
import { SalesTransactionApiService } from '@veloceapps/api/v2';
|
|
5
6
|
import { ToastService, ToastType } from '@veloceapps/components';
|
|
6
|
-
import {
|
|
7
|
-
import { ActionCodePipe, ConfigurationService, ConfigurationStateService,
|
|
7
|
+
import { Operator, parseJsonSafely, parseJwt, Predicate, TokenInfoService } from '@veloceapps/core';
|
|
8
|
+
import { ActionCodePipe, ConfigurationService, ConfigurationStateService, DatePipe, FlowConfigurationService, FlowStateConfigurationService, FlowStateService, IntegrationState, LineItemWorker, NumberPipe, PricePipe, ProductImagesService, QuoteDraftService, RuntimeSettingsService } from '@veloceapps/sdk/core';
|
|
8
9
|
import lodash from 'lodash';
|
|
9
10
|
import * as rxjs from 'rxjs';
|
|
10
11
|
import * as rxjsOperators from 'rxjs/operators';
|
|
@@ -17,7 +18,6 @@ export declare const vendorMap: {
|
|
|
17
18
|
Operator: typeof Operator;
|
|
18
19
|
Predicate: typeof Predicate;
|
|
19
20
|
parseJsonSafely: typeof parseJsonSafely;
|
|
20
|
-
ConfigurationContextMode: typeof ConfigurationContextMode;
|
|
21
21
|
parseJwt: typeof parseJwt;
|
|
22
22
|
TokenInfoService: typeof TokenInfoService;
|
|
23
23
|
};
|
|
@@ -27,7 +27,6 @@ export declare const vendorMap: {
|
|
|
27
27
|
};
|
|
28
28
|
'@veloceapps/api': {
|
|
29
29
|
SalesforceApiService: typeof SalesforceApiService;
|
|
30
|
-
QuoteApiService: typeof QuoteApiService;
|
|
31
30
|
DocumentAttachmentApiService: typeof DocumentAttachmentApiService;
|
|
32
31
|
RampApiService: typeof RampApiService;
|
|
33
32
|
CatalogApiService: typeof CatalogApiService;
|
|
@@ -39,6 +38,9 @@ export declare const vendorMap: {
|
|
|
39
38
|
GuidedSellingApiService: typeof GuidedSellingApiService;
|
|
40
39
|
ContractedPriceApiService: typeof ContractedPriceApiService;
|
|
41
40
|
};
|
|
41
|
+
'@veloceapps/api/v2': {
|
|
42
|
+
SalesTransactionApiService: typeof SalesTransactionApiService;
|
|
43
|
+
};
|
|
42
44
|
'@veloceapps/sdk/core': {
|
|
43
45
|
findLineItem: (id: string, lineItems: import("@veloceapps/core").LineItem[]) => import("@veloceapps/core").LineItem | undefined;
|
|
44
46
|
findLineItemWithComparator: (lineItems: import("@veloceapps/core").LineItem[], comparator: (li: import("@veloceapps/core").LineItem) => boolean) => import("@veloceapps/core").LineItem | undefined;
|
|
@@ -72,7 +74,6 @@ export declare const vendorMap: {
|
|
|
72
74
|
FlowStateConfigurationService: typeof FlowStateConfigurationService;
|
|
73
75
|
LineItemWorker: typeof LineItemWorker;
|
|
74
76
|
ProductImagesService: typeof ProductImagesService;
|
|
75
|
-
ContextService: typeof ContextService;
|
|
76
77
|
RuntimeSettingsService: typeof RuntimeSettingsService;
|
|
77
78
|
ActionCodePipe: typeof ActionCodePipe;
|
|
78
79
|
DatePipe: typeof DatePipe;
|
|
@@ -2,5 +2,6 @@ import { ConfigurationContext, ConfigurationRequest, LineItem, UIDefinitionProps
|
|
|
2
2
|
import { RuntimeContext } from '../../types';
|
|
3
3
|
import { GuidedSellingSubmitData, NewConfigurationProps } from './types/configuration.types';
|
|
4
4
|
export declare const getDefaultLineItem: (context: RuntimeContext, uiDefinitionProperties: UIDefinitionProps, qty?: number) => LineItem;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const generateEmptyContext: () => ConfigurationContext;
|
|
6
|
+
export declare const getGuidedSellingConfigurationRequest: (data: GuidedSellingSubmitData) => ConfigurationRequest;
|
|
6
7
|
export declare const generateConfigurationLineItem: (props: NewConfigurationProps, qty?: number) => LineItem;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { ConfigurationApiService } from '@veloceapps/api';
|
|
2
2
|
import { RuntimeModel, UIDefinitionContainer, UIDefinitionProps } from '@veloceapps/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ContextService } from '../../../services';
|
|
5
4
|
import { RuntimeContext } from '../../../types';
|
|
6
5
|
import { RuntimeInitializationProps } from '../types/configuration-runtime.types';
|
|
7
6
|
import { RuntimeContextService } from './runtime-context.service';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class ConfigurationRuntimeService {
|
|
10
9
|
private apiService;
|
|
11
|
-
private contextService;
|
|
12
10
|
private runtimeContextService;
|
|
13
11
|
private _runtimeContext?;
|
|
14
12
|
private _isInitialized;
|
|
15
13
|
initializationProps?: RuntimeInitializationProps;
|
|
16
14
|
uiDefinitionProperties: UIDefinitionProps;
|
|
17
|
-
constructor(apiService: ConfigurationApiService,
|
|
15
|
+
constructor(apiService: ConfigurationApiService, runtimeContextService: RuntimeContextService);
|
|
18
16
|
reset(): void;
|
|
19
17
|
initTestMode(uiDefinitionContainer: UIDefinitionContainer): Observable<RuntimeContext>;
|
|
20
18
|
init(props: RuntimeInitializationProps): Observable<RuntimeContext>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FlowStateApiService
|
|
1
|
+
import { FlowStateApiService } from '@veloceapps/api';
|
|
2
|
+
import { SalesTransactionApiService, SalesTransactionUpsertResponse } from '@veloceapps/api/v2';
|
|
2
3
|
import { ToastService } from '@veloceapps/components';
|
|
3
4
|
import { FlowStateExecutionRequest, FlowStateExecutionResult, FlowStateSelectorResponse } from '@veloceapps/core';
|
|
4
5
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
5
|
-
import { FlowInfoService, FlowStateService,
|
|
6
|
+
import { FlowInfoService, FlowStateService, SalesTransactionService } from '../../../services';
|
|
6
7
|
import { FlowStateSubscriptionOptions } from '../../../types/flow-state.types';
|
|
7
8
|
import { FlowConfigurationService } from '../../flow-configuration';
|
|
8
9
|
import { ConfigurationRuntimeService } from './configuration-runtime.service';
|
|
@@ -11,13 +12,13 @@ import * as i0 from "@angular/core";
|
|
|
11
12
|
export declare class ConfigurationStateService {
|
|
12
13
|
private configurationRuntimeService;
|
|
13
14
|
private configurationService;
|
|
14
|
-
private
|
|
15
|
+
private salesTransactionService;
|
|
15
16
|
private toastService;
|
|
16
17
|
private flowStateService;
|
|
17
18
|
private flowInfoService;
|
|
18
19
|
private flowConfigurationService;
|
|
19
20
|
private flowStateApiService;
|
|
20
|
-
private
|
|
21
|
+
private salesTransactionApiService;
|
|
21
22
|
isInitialized$: BehaviorSubject<boolean>;
|
|
22
23
|
canceledConfiguration$: Subject<void>;
|
|
23
24
|
private readonly NOT_INITIALIZED;
|
|
@@ -31,7 +32,7 @@ export declare class ConfigurationStateService {
|
|
|
31
32
|
private statefulRequestStream$;
|
|
32
33
|
private statefulExecutionRequest$;
|
|
33
34
|
private statelessExecutionRequest$;
|
|
34
|
-
constructor(configurationRuntimeService: ConfigurationRuntimeService, configurationService: ConfigurationService,
|
|
35
|
+
constructor(configurationRuntimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, salesTransactionService: SalesTransactionService, toastService: ToastService, flowStateService: FlowStateService, flowInfoService: FlowInfoService, flowConfigurationService: FlowConfigurationService, flowStateApiService: FlowStateApiService, salesTransactionApiService: SalesTransactionApiService);
|
|
35
36
|
get isExecutionInProgress$(): Observable<boolean>;
|
|
36
37
|
init$(): Observable<void>;
|
|
37
38
|
cleanup(): void;
|
|
@@ -39,11 +40,10 @@ export declare class ConfigurationStateService {
|
|
|
39
40
|
dispatch$(actionName: string, inputData?: unknown): Observable<FlowStateExecutionResult>;
|
|
40
41
|
select$<Response = unknown>(selectorName: string, inputData?: unknown): Observable<FlowStateSelectorResponse<Response>>;
|
|
41
42
|
subscribe$<Response = unknown>(selectorName: string, inputData?: unknown, options?: FlowStateSubscriptionOptions): Observable<FlowStateSelectorResponse<Response>>;
|
|
42
|
-
saveConfiguration(
|
|
43
|
+
saveConfiguration(): Observable<SalesTransactionUpsertResponse>;
|
|
43
44
|
cancelConfiguration(): Observable<void>;
|
|
44
45
|
private get isStatefulConfiguration();
|
|
45
46
|
private initStateful$;
|
|
46
|
-
private initStateless$;
|
|
47
47
|
private execToRequest;
|
|
48
48
|
private handleSelectorsResponse;
|
|
49
49
|
private executeRequest$;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ConfigurationApiService } from '@veloceapps/api';
|
|
2
|
-
import { Charge, CompiledPricePlan,
|
|
2
|
+
import { Charge, CompiledPricePlan, ConfigurationRequest, ConfigurePrice, LineItem, RuntimeModel } from '@veloceapps/core';
|
|
3
3
|
import { Dictionary } from 'lodash';
|
|
4
4
|
import { MessageService } from 'primeng/api';
|
|
5
5
|
import { DialogService } from 'primeng/dynamicdialog';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
-
import {
|
|
8
|
-
import { FlowInfoService } from '../../../services/flow-info.service';
|
|
7
|
+
import { FlowInfoService } from '../../../services';
|
|
9
8
|
import { QuoteDraftService } from '../../../services/quote-draft.service';
|
|
10
9
|
import { RuntimeSettingsService } from '../../../services/runtime-settings.service';
|
|
11
10
|
import { RuntimeContext } from '../../../types';
|
|
@@ -15,7 +14,6 @@ import * as i0 from "@angular/core";
|
|
|
15
14
|
export declare class ConfigurationService {
|
|
16
15
|
private quoteDraftService;
|
|
17
16
|
private runtimeService;
|
|
18
|
-
private contextService;
|
|
19
17
|
private configurationApiService;
|
|
20
18
|
private messageService;
|
|
21
19
|
private dialogService;
|
|
@@ -28,10 +26,10 @@ export declare class ConfigurationService {
|
|
|
28
26
|
private isLoadingSubj$;
|
|
29
27
|
isLoading$: Observable<boolean>;
|
|
30
28
|
hasUnsavedChanges: boolean;
|
|
31
|
-
constructor(quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService,
|
|
29
|
+
constructor(quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService, configurationApiService: ConfigurationApiService, messageService: MessageService, dialogService: DialogService, runtimeSettings: RuntimeSettingsService, flowInfoService: FlowInfoService);
|
|
32
30
|
reset(): void;
|
|
33
|
-
patch$(lineItem: LineItem
|
|
34
|
-
patch(lineItem: LineItem
|
|
31
|
+
patch$(lineItem: LineItem): Observable<LineItem>;
|
|
32
|
+
patch(lineItem: LineItem): void;
|
|
35
33
|
setConfigurableRamp(lineItem: LineItem): void;
|
|
36
34
|
get(): Observable<LineItem | undefined>;
|
|
37
35
|
getSnapshot(): LineItem | undefined;
|
|
@@ -40,8 +38,6 @@ export declare class ConfigurationService {
|
|
|
40
38
|
get state$(): Observable<ConfigurePrice | null>;
|
|
41
39
|
get stateSnapshot(): ConfigurePrice | null;
|
|
42
40
|
get previousStateSnapshot(): ConfigurePrice | null;
|
|
43
|
-
get contextSnapshot(): ConfigurationContext;
|
|
44
|
-
get context$(): Observable<ConfigurationContext>;
|
|
45
41
|
get charges$(): Observable<Dictionary<Charge>>;
|
|
46
42
|
get chargesSnapshot(): Dictionary<Charge>;
|
|
47
43
|
get pricePlans$(): Observable<Dictionary<CompiledPricePlan>>;
|
|
@@ -58,7 +54,6 @@ export declare class ConfigurationService {
|
|
|
58
54
|
private getUIDefinitionProperties;
|
|
59
55
|
private showInactiveProductsConfirmation;
|
|
60
56
|
private extendedConfigureLineItem$;
|
|
61
|
-
private extendConfigurationRequest;
|
|
62
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
|
|
63
58
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
|
|
64
59
|
}
|
|
@@ -1,50 +1,29 @@
|
|
|
1
|
-
import { ProceduresApiService } from '@veloceapps/api';
|
|
2
|
-
import {
|
|
3
|
-
import { Dictionary } from 'lodash';
|
|
1
|
+
import { ProceduresApiService } from '@veloceapps/api/v2';
|
|
2
|
+
import { SalesTransaction, SalesTransactionItem } from '@veloceapps/core';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
|
-
import {
|
|
6
|
-
import { QuoteDraftService } from '../../../services/quote-draft.service';
|
|
4
|
+
import { FlowInfoService, SalesTransactionService } from '../../../services';
|
|
7
5
|
import { ExternalConfigurationProps } from '../../configuration';
|
|
8
6
|
import { ConfigurationService } from '../../configuration/services/configuration.service';
|
|
9
|
-
import { FlowUpdateParams } from '../types/update.types';
|
|
10
7
|
import { FlowUpdateService } from './flow-update.service';
|
|
11
|
-
import { FlowInfoService } from '../../../services';
|
|
12
8
|
import * as i0 from "@angular/core";
|
|
13
9
|
export declare class FlowConfigurationService {
|
|
14
10
|
private proceduresApiService;
|
|
15
|
-
private
|
|
16
|
-
private quoteDraftService;
|
|
11
|
+
private salesTransactionService;
|
|
17
12
|
private updateService;
|
|
18
13
|
private configurationService;
|
|
19
14
|
private flowInfoService;
|
|
20
|
-
/**
|
|
21
|
-
* An event being fired when QuoteDraft was updated
|
|
22
|
-
*/
|
|
23
15
|
updated$: Observable<void>;
|
|
24
16
|
private updatedSubj$;
|
|
25
|
-
constructor(proceduresApiService: ProceduresApiService,
|
|
26
|
-
calculate$(
|
|
27
|
-
calculate(
|
|
28
|
-
|
|
29
|
-
update(updates: FlowUpdateParams[]): void;
|
|
30
|
-
revert$(lineItemId: string): Observable<QuoteDraft | null>;
|
|
17
|
+
constructor(proceduresApiService: ProceduresApiService, salesTransactionService: SalesTransactionService, updateService: FlowUpdateService, configurationService: ConfigurationService, flowInfoService: FlowInfoService);
|
|
18
|
+
calculate$(state: SalesTransaction): Observable<void>;
|
|
19
|
+
calculate(state: SalesTransaction): void;
|
|
20
|
+
revert$(lineItemId: string): Observable<SalesTransaction | null>;
|
|
31
21
|
revert(lineItemId: string): void;
|
|
32
|
-
delete$(ids: string[]): Observable<
|
|
22
|
+
delete$(ids: string[]): Observable<SalesTransaction | null>;
|
|
33
23
|
delete(ids: string[]): void;
|
|
34
|
-
addTerm$(term:
|
|
35
|
-
addToCart$(props: ExternalConfigurationProps): Observable<
|
|
36
|
-
get(): Observable<LineItem[]>;
|
|
37
|
-
getSnapshot(): LineItem[];
|
|
38
|
-
get charges$(): Observable<Dictionary<Charge>>;
|
|
39
|
-
get pricePlans$(): Observable<Dictionary<CompiledPricePlan>>;
|
|
40
|
-
get activeMetrics$(): Observable<MetricRule[]>;
|
|
41
|
-
get chargesSnapshot(): Dictionary<Charge>;
|
|
42
|
-
get pricePlansSnapshot(): Dictionary<CompiledPricePlan>;
|
|
43
|
-
get activeMetricsSnapshot(): MetricRule[];
|
|
44
|
-
get contextSnapshot(): ConfigurationContext;
|
|
45
|
-
get context$(): Observable<ConfigurationContext>;
|
|
24
|
+
addTerm$(term: SalesTransactionItem): Observable<SalesTransaction | null>;
|
|
25
|
+
addToCart$(props: ExternalConfigurationProps): Observable<SalesTransaction | null>;
|
|
46
26
|
private handleErrorAndBounceBack;
|
|
47
|
-
private extendedApply$;
|
|
48
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowConfigurationService, never>;
|
|
49
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowConfigurationService>;
|
|
50
29
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CatalogProducts } from '@veloceapps/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CatalogProductsService {
|
|
4
|
+
private stateSubj$;
|
|
5
|
+
state$: import("rxjs").Observable<CatalogProducts>;
|
|
6
|
+
get state(): CatalogProducts | null;
|
|
7
|
+
reset(): void;
|
|
8
|
+
setState(state: CatalogProducts): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogProductsService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogProductsService>;
|
|
11
|
+
}
|
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
import { Params } from '@angular/router';
|
|
2
|
-
import {
|
|
3
|
-
import { Flow, UITemplate, UITemplateType } from '@veloceapps/core';
|
|
2
|
+
import { UITemplatesApiService } from '@veloceapps/api/v2';
|
|
3
|
+
import { Flow, FlowContext, UITemplate, UITemplateType } from '@veloceapps/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { FlowCustomization } from '../types';
|
|
6
|
+
import { RuntimeSettingsService } from './runtime-settings.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class FlowInfoService {
|
|
8
|
-
private
|
|
9
|
+
private runtimeSettingsService;
|
|
9
10
|
private templatesApiService;
|
|
10
11
|
private customizationService?;
|
|
11
12
|
flow$: Observable<Flow | null>;
|
|
12
|
-
|
|
13
|
-
templates: {
|
|
13
|
+
templates$: Observable<{
|
|
14
14
|
[key in UITemplateType]?: UITemplate;
|
|
15
|
+
}>;
|
|
16
|
+
get flow(): Flow;
|
|
17
|
+
get isFlowInitialized(): boolean;
|
|
18
|
+
get context(): FlowContext;
|
|
19
|
+
get templates(): {
|
|
20
|
+
SHOPPING_CART?: UITemplate | undefined;
|
|
21
|
+
CONFIGURATION_UI?: UITemplate | undefined;
|
|
22
|
+
CATALOG?: UITemplate | undefined;
|
|
23
|
+
GUIDED_SELLING?: UITemplate | undefined;
|
|
24
|
+
FLOW_ENGINE?: UITemplate | undefined;
|
|
25
|
+
FLOW_HEADER?: UITemplate | undefined;
|
|
15
26
|
};
|
|
16
|
-
get
|
|
17
|
-
set flow(value: Flow | null);
|
|
18
|
-
get isLegacy(): boolean;
|
|
27
|
+
get isFlowEngineInitialized$(): Observable<boolean>;
|
|
19
28
|
get isStateful(): boolean;
|
|
20
29
|
private readonly defaultTemplates;
|
|
21
30
|
private flowSubj$;
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
private templatesSubj$;
|
|
32
|
+
private contextSubj$;
|
|
33
|
+
constructor(runtimeSettingsService: RuntimeSettingsService, templatesApiService: UITemplatesApiService, customizationService?: FlowCustomization | undefined);
|
|
24
34
|
cleanup(): void;
|
|
35
|
+
init$(flowId: string, routeQueryParams: Params): Observable<void>;
|
|
36
|
+
private initFlow$;
|
|
25
37
|
private initFlowTemplates$;
|
|
26
38
|
private remapTemplateName;
|
|
39
|
+
private getFlowContextMode;
|
|
27
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowInfoService, [null, null, { optional: true; }]>;
|
|
28
41
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowInfoService>;
|
|
29
42
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlowStateApiService } from '@veloceapps/api';
|
|
2
|
+
import { ConfigurationProcessorsApiService, SalesTransactionApiService } from '@veloceapps/api/v2';
|
|
2
3
|
import { ToastService } from '@veloceapps/components';
|
|
3
4
|
import { Charge, CompiledPricePlan, FlowStateExecutionRequest, FlowStateExecutionRequestDTO, FlowStateExecutionResult, FlowStateSelectorResponse, MetricRule, UITemplateType } from '@veloceapps/core';
|
|
4
5
|
import { Dictionary } from 'lodash';
|
|
@@ -6,18 +7,16 @@ import { Observable } from 'rxjs';
|
|
|
6
7
|
import { FlowConfigurationService } from '../modules';
|
|
7
8
|
import { FlowCustomization } from '../types/flow-customization.types';
|
|
8
9
|
import { FlowStateSubscriptionOptions } from '../types/flow-state.types';
|
|
9
|
-
import { ContextService } from './context.service';
|
|
10
10
|
import { FlowInfoService } from './flow-info.service';
|
|
11
|
-
import {
|
|
11
|
+
import { SalesTransactionService } from './sales-transaction.service';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class FlowStateService {
|
|
14
|
-
private
|
|
15
|
-
private quoteDraftService;
|
|
14
|
+
private salesTransactionService;
|
|
16
15
|
private flowInfoService;
|
|
17
16
|
private flowConfiguration;
|
|
18
17
|
private processorsApiService;
|
|
19
18
|
private flowStateApiService;
|
|
20
|
-
private
|
|
19
|
+
private salesTransactionApiService;
|
|
21
20
|
private toastService;
|
|
22
21
|
private customizationService?;
|
|
23
22
|
charges$: Observable<Dictionary<Charge>>;
|
|
@@ -37,7 +36,7 @@ export declare class FlowStateService {
|
|
|
37
36
|
private statefulRequestStream$;
|
|
38
37
|
private statefulExecutionRequest$;
|
|
39
38
|
private cleanup$;
|
|
40
|
-
constructor(
|
|
39
|
+
constructor(salesTransactionService: SalesTransactionService, flowInfoService: FlowInfoService, flowConfiguration: FlowConfigurationService, processorsApiService: ConfigurationProcessorsApiService, flowStateApiService: FlowStateApiService, salesTransactionApiService: SalesTransactionApiService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
|
41
40
|
init$(): Observable<void>;
|
|
42
41
|
cleanup(): void;
|
|
43
42
|
get hasUnsavedChanges(): boolean;
|
|
@@ -50,10 +49,10 @@ export declare class FlowStateService {
|
|
|
50
49
|
select$<Response = unknown>(scope: UITemplateType, selectorName: string, inputData?: unknown): Observable<FlowStateSelectorResponse<Response>>;
|
|
51
50
|
subscribe$<Response = unknown>(scope: UITemplateType, selectorName: string, inputData?: unknown, options?: FlowStateSubscriptionOptions): Observable<FlowStateSelectorResponse<Response>>;
|
|
52
51
|
save$(): Observable<{
|
|
53
|
-
|
|
52
|
+
id: string;
|
|
54
53
|
}>;
|
|
55
54
|
submit$(): Observable<{
|
|
56
|
-
|
|
55
|
+
id: string;
|
|
57
56
|
}>;
|
|
58
57
|
getFlowStore(): Record<string, unknown>;
|
|
59
58
|
private getOwnerIdByScope;
|
|
@@ -65,7 +64,6 @@ export declare class FlowStateService {
|
|
|
65
64
|
private initBufferedRequest$;
|
|
66
65
|
private executeStateful$;
|
|
67
66
|
private initStateless$;
|
|
68
|
-
private calculate$;
|
|
69
67
|
private executeStateless$;
|
|
70
68
|
private executeStatelessActions;
|
|
71
69
|
private executeStatelessSelectors;
|
|
@@ -75,8 +73,7 @@ export declare class FlowStateService {
|
|
|
75
73
|
private executeSelectorScript;
|
|
76
74
|
private executeProcessorScript;
|
|
77
75
|
private generateRequestId;
|
|
78
|
-
private getDefaultExecutionRequestDTO;
|
|
79
76
|
private checkStatefulChanges;
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlowStateService, [null, null, null, null, null, null, null,
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowStateService, [null, null, null, null, null, null, null, { optional: true; }]>;
|
|
81
78
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowStateService>;
|
|
82
79
|
}
|
package/core/services/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './context.service';
|
|
2
1
|
export * from './flow-info.service';
|
|
3
|
-
export * from './flow-state.service';
|
|
4
2
|
export * from './flow-state-configuration.service';
|
|
3
|
+
export * from './flow-state.service';
|
|
5
4
|
export * from './integration.state';
|
|
6
5
|
export * from './product-images.service';
|
|
7
6
|
export * from './quote-draft.service';
|
|
8
7
|
export * from './runtime-settings.service';
|
|
8
|
+
export * from './sales-transaction.service';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AccountApiService
|
|
1
|
+
import { AccountApiService } from '@veloceapps/api';
|
|
2
2
|
import { AccountAssetsState, LineItem, PriceSummary, QuoteDraft } from '@veloceapps/core';
|
|
3
3
|
import { Dictionary } from 'lodash';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { ContextService } from './context.service';
|
|
6
5
|
import { FlowInfoService } from './flow-info.service';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
8
10
|
export declare class QuoteDraftService {
|
|
9
|
-
private context;
|
|
10
11
|
private flowInfoService;
|
|
11
12
|
private accountApiService;
|
|
12
|
-
private quoteApiService;
|
|
13
13
|
private quoteSubj$;
|
|
14
14
|
private assetsSubj$;
|
|
15
15
|
private resetSubj$;
|
|
@@ -27,7 +27,7 @@ export declare class QuoteDraftService {
|
|
|
27
27
|
get hasAssets(): boolean;
|
|
28
28
|
get assetsState(): AccountAssetsState | null;
|
|
29
29
|
reset$: Observable<boolean>;
|
|
30
|
-
constructor(
|
|
30
|
+
constructor(flowInfoService: FlowInfoService, accountApiService: AccountApiService);
|
|
31
31
|
reset(): void;
|
|
32
32
|
init(headerId: string, params: Dictionary<string>): Observable<void>;
|
|
33
33
|
finalizeInit(): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SalesTransactionApiService } from '@veloceapps/api/v2';
|
|
2
|
+
import { SalesTransaction, SalesTransactionItem } from '@veloceapps/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FlowInfoService } from './flow-info.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SalesTransactionService {
|
|
7
|
+
private flowInfoService;
|
|
8
|
+
private salesTransactionApiService;
|
|
9
|
+
private stateSubj$;
|
|
10
|
+
private isInitializedSubj$;
|
|
11
|
+
private hasUnsavedChangesSubj$;
|
|
12
|
+
private initialCurrentState;
|
|
13
|
+
hasUnsavedChanges$: Observable<boolean>;
|
|
14
|
+
state$: Observable<SalesTransaction>;
|
|
15
|
+
get isInitialized$(): Observable<boolean>;
|
|
16
|
+
get isInitialized(): boolean;
|
|
17
|
+
set hasUnsavedChanges(value: boolean);
|
|
18
|
+
get hasUnsavedChanges(): boolean;
|
|
19
|
+
get state(): SalesTransaction | null;
|
|
20
|
+
constructor(flowInfoService: FlowInfoService, salesTransactionApiService: SalesTransactionApiService);
|
|
21
|
+
init(headerId: string, params: Record<string, string>): Observable<SalesTransaction>;
|
|
22
|
+
finalizeInit(): void;
|
|
23
|
+
reset(): void;
|
|
24
|
+
getInitialCurrentState(): SalesTransactionItem[];
|
|
25
|
+
setState(state: SalesTransaction): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SalesTransactionService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SalesTransactionService>;
|
|
28
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SalesTransactionItem } from '@veloceapps/core';
|
|
2
2
|
export interface FlowStateSubscriptionOptions {
|
|
3
3
|
/**
|
|
4
4
|
* When 'true', don't execute action to retrieve current value
|
|
@@ -7,6 +7,6 @@ export interface FlowStateSubscriptionOptions {
|
|
|
7
7
|
trackedChanges?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export interface FlowStore {
|
|
10
|
-
assets?:
|
|
10
|
+
assets?: SalesTransactionItem[];
|
|
11
11
|
[key: string]: unknown;
|
|
12
12
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DataSource } from '@angular/cdk/collections';
|
|
2
2
|
import * as angularCore from '@angular/core';
|
|
3
3
|
import * as angularForms from '@angular/forms';
|
|
4
|
-
import { CatalogApiService, ConfigurationSettingsApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, GuidedSellingApiService, PicklistsApiService, PriceApiService,
|
|
4
|
+
import { CatalogApiService, ConfigurationSettingsApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, GuidedSellingApiService, PicklistsApiService, PriceApiService, RampApiService, SalesforceApiService, ShoppingCartSettingsApiService, } from '@veloceapps/api';
|
|
5
|
+
import { SalesTransactionApiService } from '@veloceapps/api/v2';
|
|
5
6
|
import { ToastService, ToastType } from '@veloceapps/components';
|
|
6
|
-
import {
|
|
7
|
-
import { ActionCodePipe, ConfigurationService, ConfigurationStateService,
|
|
7
|
+
import { isDefined, Operator, parseJsonSafely, parseJwt, Predicate, TokenInfoService } from '@veloceapps/core';
|
|
8
|
+
import { ActionCodePipe, ConfigurationService, ConfigurationStateService, DatePipe, FlowConfigurationService, FlowStateConfigurationService, FlowStateService, IntegrationState, lineItemUtils, LineItemWorker, NumberPipe, PricePipe, ProductImagesService, QuoteDraftService, RuntimeSettingsService, } from '@veloceapps/sdk/core';
|
|
8
9
|
import lodash from 'lodash';
|
|
9
10
|
import * as rxjs from 'rxjs';
|
|
10
11
|
import * as rxjsOperators from 'rxjs/operators';
|
|
@@ -19,7 +20,6 @@ export const vendorMap = {
|
|
|
19
20
|
Operator,
|
|
20
21
|
Predicate,
|
|
21
22
|
parseJsonSafely,
|
|
22
|
-
ConfigurationContextMode,
|
|
23
23
|
parseJwt,
|
|
24
24
|
TokenInfoService,
|
|
25
25
|
},
|
|
@@ -29,7 +29,6 @@ export const vendorMap = {
|
|
|
29
29
|
},
|
|
30
30
|
'@veloceapps/api': {
|
|
31
31
|
SalesforceApiService,
|
|
32
|
-
QuoteApiService,
|
|
33
32
|
DocumentAttachmentApiService,
|
|
34
33
|
RampApiService,
|
|
35
34
|
CatalogApiService,
|
|
@@ -41,6 +40,9 @@ export const vendorMap = {
|
|
|
41
40
|
GuidedSellingApiService,
|
|
42
41
|
ContractedPriceApiService,
|
|
43
42
|
},
|
|
43
|
+
'@veloceapps/api/v2': {
|
|
44
|
+
SalesTransactionApiService,
|
|
45
|
+
},
|
|
44
46
|
'@veloceapps/sdk/core': {
|
|
45
47
|
ConfigurationService,
|
|
46
48
|
ConfigurationStateService,
|
|
@@ -51,7 +53,6 @@ export const vendorMap = {
|
|
|
51
53
|
FlowStateConfigurationService,
|
|
52
54
|
LineItemWorker,
|
|
53
55
|
ProductImagesService,
|
|
54
|
-
ContextService,
|
|
55
56
|
RuntimeSettingsService,
|
|
56
57
|
ActionCodePipe,
|
|
57
58
|
DatePipe,
|
|
@@ -76,4 +77,4 @@ export const vendorMap = {
|
|
|
76
77
|
'rxjs/operators': rxjsOperators,
|
|
77
78
|
lodash: lodash,
|
|
78
79
|
};
|
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVuZG9yLW1hcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL2Ntcy92ZW5kb3ItbWFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUN0RCxPQUFPLEtBQUssV0FBVyxNQUFNLGVBQWUsQ0FBQztBQUM3QyxPQUFPLEtBQUssWUFBWSxNQUFNLGdCQUFnQixDQUFDO0FBQy9DLE9BQU8sRUFDTCxpQkFBaUIsRUFDakIsK0JBQStCLEVBQy9CLHlCQUF5QixFQUN6QixlQUFlLEVBQ2YsNEJBQTRCLEVBQzVCLHVCQUF1QixFQUN2QixtQkFBbUIsRUFDbkIsZUFBZSxFQUNmLGNBQWMsRUFDZCxvQkFBb0IsRUFDcEIsOEJBQThCLEdBQy9CLE1BQU0saUJBQWlCLENBQUM7QUFDekIsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDaEUsT0FBTyxFQ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1NlcnZpY2UsXG4gICAgQWN0aW9uQ29kZVBpcGUsXG4gICAgRGF0ZVBpcGUsXG4gICAgTnVtYmVyUGlwZSxcbiAgICBQcmljZVBpcGUsXG4gICAgLi4ubGluZUl0ZW1VdGlscyxcbiAgfSxcbiAgJ0B2ZWxvY2VhcHBzL3Nkay9jbXMnOiB7XG4gICAgLi4uY21zSW5qZWN0aW9uVG9rZW5zLFxuICAgIC4uLmNtc0FjdGlvbnMsXG4gICAgVGVtcGxhdGVzU2VydmljZSxcbiAgICBJbnRlZ3JhdGlvblN0YXRlLFxuICAgIFJlc291cmNlc1NlcnZpY2UsXG4gICAgY21zSW5qZWN0LFxuICB9LFxuICAnQGFuZ3VsYXIvY29yZSc6IGFuZ3VsYXJDb3JlLFxuICAnQGFuZ3VsYXIvZm9ybXMnOiBhbmd1bGFyRm9ybXMsXG4gICdAYW5ndWxhci9jZGsvY29sbGVjdGlvbnMnOiB7XG4gICAgRGF0YVNvdXJjZSxcbiAgfSxcbiAgcnhqczogcnhqcyxcbiAgJ3J4anMvb3BlcmF0b3JzJzogcnhqc09wZXJhdG9ycyxcbiAgbG9kYXNoOiBsb2Rhc2gsXG59O1xuXG5leHBvcnQgdHlwZSBWZW5kb3JNYXAgPSB0eXBlb2YgdmVuZG9yTWFwO1xuIl19
|
|
@@ -2,7 +2,8 @@ import { NgModule } from '@angular/core';
|
|
|
2
2
|
import { DEFAULT_ACTION_CODE_LABELS, DEFAULT_CURRENCY_SYMBOL, DEFAULT_DATE_FORMAT, DEFAULT_DECIMALS_COUNT, DEFAULT_DECIMAL_SEPARATOR, DEFAULT_THOUSANDS_SEPARATOR, getSupportedDateFormats, } from '@veloceapps/core';
|
|
3
3
|
import { FlowConfigurationModule } from './modules';
|
|
4
4
|
import { ConfigurationModule } from './modules/configuration/configuration.module';
|
|
5
|
-
import {
|
|
5
|
+
import { FlowInfoService, FlowStateConfigurationService, FlowStateService, IntegrationState, ProductImagesService, QuoteDraftService, RuntimeSettingsService, SalesTransactionService, } from './services';
|
|
6
|
+
import { CatalogProductsService } from './services/catalog-products.service';
|
|
6
7
|
import { FORMATTING_SETTINGS_TOKEN } from './types';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export const DEFAULT_FORMATTING_SETTINGS = {
|
|
@@ -18,7 +19,6 @@ export class SdkCoreModule {
|
|
|
18
19
|
SdkCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
20
|
SdkCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SdkCoreModule, imports: [ConfigurationModule, FlowConfigurationModule] });
|
|
20
21
|
SdkCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkCoreModule, providers: [
|
|
21
|
-
ContextService,
|
|
22
22
|
FlowInfoService,
|
|
23
23
|
QuoteDraftService,
|
|
24
24
|
ProductImagesService,
|
|
@@ -26,6 +26,8 @@ SdkCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
26
26
|
FlowStateService,
|
|
27
27
|
FlowStateConfigurationService,
|
|
28
28
|
RuntimeSettingsService,
|
|
29
|
+
SalesTransactionService,
|
|
30
|
+
CatalogProductsService,
|
|
29
31
|
{
|
|
30
32
|
provide: FORMATTING_SETTINGS_TOKEN,
|
|
31
33
|
useExisting: RuntimeSettingsService,
|
|
@@ -36,7 +38,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
36
38
|
args: [{
|
|
37
39
|
imports: [ConfigurationModule, FlowConfigurationModule],
|
|
38
40
|
providers: [
|
|
39
|
-
ContextService,
|
|
40
41
|
FlowInfoService,
|
|
41
42
|
QuoteDraftService,
|
|
42
43
|
ProductImagesService,
|
|
@@ -44,6 +45,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
44
45
|
FlowStateService,
|
|
45
46
|
FlowStateConfigurationService,
|
|
46
47
|
RuntimeSettingsService,
|
|
48
|
+
SalesTransactionService,
|
|
49
|
+
CatalogProductsService,
|
|
47
50
|
{
|
|
48
51
|
provide: FORMATTING_SETTINGS_TOKEN,
|
|
49
52
|
useExisting: RuntimeSettingsService,
|
|
@@ -51,4 +54,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
51
54
|
],
|
|
52
55
|
}]
|
|
53
56
|
}] });
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9jb3JlL2NvcmUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUNMLDBCQUEwQixFQUMxQix1QkFBdUIsRUFDdkIsbUJBQW1CLEVBQ25CLHNCQUFzQixFQUN0Qix5QkFBeUIsRUFDekIsMkJBQTJCLEVBQzNCLHVCQUF1QixHQUN4QixNQUFNLGtCQUFrQixDQUFDO0FBQzFCLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUNwRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQztBQUNuRixPQUFPLEVBQ0wsZUFBZSxFQUNmLDZCQUE2QixFQUM3QixnQkFBZ0IsRUFDaEIsZ0JBQWdCLEVBQ2hCLG9CQUFvQixFQUNwQixpQkFBaUIsRUFDakIsc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