@veloceapps/sdk 8.0.0-99 → 9.0.0-0
Sign up to get free protection for your applications and to get access to all the features.
- package/cms/README.md +0 -20
- package/cms/cms.actions.d.ts +9 -1
- package/cms/components/preview/preview.component.d.ts +2 -3
- package/cms/components/preview/preview.types.d.ts +4 -0
- package/cms/index.d.ts +1 -0
- package/cms/modules/runtime/services/runtime.service.d.ts +1 -1
- package/cms/services/index.d.ts +0 -1
- package/cms/services/resources.service.d.ts +2 -0
- package/cms/types/index.d.ts +0 -1
- package/cms/utils/element-metadata-worker.d.ts +11 -0
- package/cms/utils/elements-resolver.d.ts +0 -2
- package/cms/utils/index.d.ts +3 -0
- package/cms/utils/transpilation-worker.d.ts +13 -0
- package/cms/vendor-map.d.ts +21 -18
- package/core/README.md +20 -0
- package/core/modules/configuration/configuration.module.d.ts +2 -1
- package/core/modules/configuration/helpers.d.ts +2 -1
- package/core/modules/configuration/index.d.ts +1 -1
- package/core/modules/configuration/services/configuration-state.service.d.ts +54 -0
- package/core/modules/configuration/services/configuration.service.d.ts +6 -6
- package/core/modules/configuration/types/configuration.types.d.ts +4 -0
- package/core/modules/flow-configuration/flow-configuration.module.d.ts +2 -1
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +5 -0
- package/core/services/context.service.d.ts +2 -0
- package/core/services/flow-info.service.d.ts +29 -0
- package/core/services/flow-state-configuration.service.d.ts +19 -0
- package/core/services/flow-state.service.d.ts +80 -0
- package/core/services/index.d.ts +4 -1
- package/core/services/quote-draft.service.d.ts +12 -28
- package/core/types/flow-customization.types.d.ts +22 -0
- package/core/types/flow-state.types.d.ts +11 -0
- package/core/types/index.d.ts +3 -1
- package/{cms → core}/types/integration.types.d.ts +0 -1
- package/core/utils/line-item.utils.d.ts +1 -3
- package/esm2020/cms/cms.actions.mjs +11 -1
- package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +3 -3
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
- package/esm2020/cms/components/preview/preview.component.mjs +10 -10
- package/esm2020/cms/components/preview/preview.module.mjs +2 -2
- package/esm2020/cms/components/preview/preview.types.mjs +1 -1
- package/esm2020/cms/index.mjs +2 -1
- package/esm2020/cms/launcher.module.mjs +4 -4
- package/esm2020/cms/modules/migrations/migrations.mjs +2 -2
- package/esm2020/cms/modules/migrations/services/migrations.service.mjs +6 -2
- package/esm2020/cms/modules/runtime/services/compilation.service.mjs +8 -8
- package/esm2020/cms/modules/runtime/services/runtime.service.mjs +4 -4
- package/esm2020/cms/plugins/configuration.plugin.mjs +8 -4
- package/esm2020/cms/services/index.mjs +1 -2
- package/esm2020/cms/services/io-provider.service.mjs +10 -9
- package/esm2020/cms/services/resources.service.mjs +10 -6
- package/esm2020/cms/services/templates.service.mjs +10 -9
- package/esm2020/cms/types/index.mjs +1 -2
- package/esm2020/cms/utils/element-metadata-worker.mjs +31 -0
- package/esm2020/cms/utils/elements-resolver.mjs +13 -27
- package/esm2020/cms/utils/encoding.utils.mjs +3 -2
- package/esm2020/cms/utils/index.mjs +4 -1
- package/esm2020/cms/utils/path.utils.mjs +3 -3
- package/esm2020/cms/utils/script.utils.mjs +19 -15
- package/esm2020/cms/utils/transpilation-worker.mjs +52 -0
- package/esm2020/cms/vendor-map.mjs +10 -5
- package/esm2020/core/core.module.mjs +19 -3
- package/esm2020/core/modules/configuration/configuration.module.mjs +7 -23
- package/esm2020/core/modules/configuration/helpers.mjs +21 -1
- package/esm2020/core/modules/configuration/index.mjs +2 -2
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +335 -0
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +56 -50
- package/esm2020/core/modules/configuration/types/configuration.types.mjs +1 -1
- package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +6 -6
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +12 -9
- package/esm2020/core/services/context.service.mjs +17 -5
- package/esm2020/core/services/flow-info.service.mjs +99 -0
- package/esm2020/core/services/flow-state-configuration.service.mjs +53 -0
- package/esm2020/core/services/flow-state.service.mjs +512 -0
- package/esm2020/core/services/index.mjs +5 -2
- package/esm2020/core/services/integration.state.mjs +36 -0
- package/esm2020/core/services/product-images.service.mjs +4 -5
- package/esm2020/core/services/quote-draft.service.mjs +39 -91
- package/esm2020/core/services/runtime-settings.service.mjs +7 -5
- package/esm2020/core/types/flow-customization.types.mjs +3 -0
- package/esm2020/core/types/flow-state.types.mjs +2 -0
- package/esm2020/core/types/index.mjs +4 -2
- package/esm2020/core/types/integration.types.mjs +2 -0
- package/esm2020/core/utils/line-item.utils.mjs +33 -32
- package/esm2020/src/components/doc-gen/doc-gen.component.mjs +44 -51
- package/esm2020/src/components/flow-header/flow-header.component.mjs +36 -47
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +35 -46
- package/esm2020/src/flow-routing.module.mjs +5 -18
- package/esm2020/src/flow.component.mjs +22 -37
- package/esm2020/src/guards/context.guard.mjs +6 -11
- package/esm2020/src/guards/flow.guard.mjs +23 -9
- package/esm2020/src/pages/assets/assets.component.mjs +30 -34
- package/esm2020/src/pages/catalog/catalog.component.mjs +30 -34
- package/esm2020/src/pages/debug/debug.component.mjs +2 -2
- package/esm2020/src/pages/product/product.component.mjs +34 -20
- package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +6 -3
- package/esm2020/src/pages/remote/remote.component.mjs +15 -14
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +31 -35
- package/esm2020/src/resolvers/flow.resolver.mjs +37 -55
- package/esm2020/src/resolvers/quote.resolver.mjs +55 -67
- package/esm2020/src/services/doc-gen.service.mjs +4 -3
- package/esm2020/src/services/flow-dialog.service.mjs +17 -6
- package/esm2020/src/services/flow-router.service.mjs +42 -15
- package/esm2020/src/services/flow.service.mjs +67 -52
- package/esm2020/src/services/guided-selling.service.mjs +5 -4
- package/esm2020/src/types/index.mjs +1 -2
- package/fesm2015/veloceapps-sdk-cms.mjs +270 -191
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +1195 -427
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +776 -826
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +275 -206
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +1176 -454
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +899 -945
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +8 -7
- package/src/components/doc-gen/doc-gen.component.d.ts +7 -10
- package/src/components/flow-header/flow-header.component.d.ts +6 -9
- package/src/components/guided-selling/guided-selling.component.d.ts +6 -9
- package/src/flow-routing.module.d.ts +1 -2
- package/src/flow.component.d.ts +7 -12
- package/src/guards/context.guard.d.ts +0 -1
- package/src/guards/flow.guard.d.ts +1 -1
- package/src/pages/assets/assets.component.d.ts +5 -7
- package/src/pages/catalog/catalog.component.d.ts +5 -7
- package/src/pages/product/product.component.d.ts +8 -7
- package/src/pages/record-not-found/record-not-found.component.d.ts +2 -0
- package/src/pages/remote/remote.component.d.ts +2 -3
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +5 -7
- package/src/resolvers/flow.resolver.d.ts +6 -9
- package/src/resolvers/quote.resolver.d.ts +7 -14
- package/src/services/doc-gen.service.d.ts +1 -1
- package/src/services/flow-dialog.service.d.ts +4 -2
- package/src/services/flow-router.service.d.ts +6 -3
- package/src/services/flow.service.d.ts +10 -14
- package/src/services/guided-selling.service.d.ts +1 -1
- package/src/types/index.d.ts +0 -1
- package/core/modules/configuration/services/configuration.state.d.ts +0 -30
- package/core/services/metric-calculation/metric-calculation.service.d.ts +0 -25
- package/core/services/metric-calculation/metric-calculation.types.d.ts +0 -1
- package/core/services/metric-calculation/metric-calculation.utils.d.ts +0 -5
- package/esm2020/cms/services/integration.state.mjs +0 -37
- package/esm2020/cms/types/integration.types.mjs +0 -2
- package/esm2020/core/modules/configuration/services/configuration.state.mjs +0 -142
- package/esm2020/core/services/metric-calculation/metric-calculation.service.mjs +0 -85
- package/esm2020/core/services/metric-calculation/metric-calculation.types.mjs +0 -2
- package/esm2020/core/services/metric-calculation/metric-calculation.utils.mjs +0 -42
- package/esm2020/src/pages/empty-account/empty-account.component.mjs +0 -12
- package/esm2020/src/pages/empty-account/empty-account.module.mjs +0 -20
- package/esm2020/src/types/flow-customization.types.mjs +0 -3
- package/src/pages/empty-account/empty-account.component.d.ts +0 -5
- package/src/pages/empty-account/empty-account.module.d.ts +0 -10
- package/src/types/flow-customization.types.d.ts +0 -12
- /package/{cms → core}/services/integration.state.d.ts +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@veloceapps/sdk",
|
3
|
-
"version": "
|
3
|
+
"version": "9.0.0-0",
|
4
4
|
"private": false,
|
5
5
|
"peerDependencies": {
|
6
6
|
"@angular/animations": "~15.2.0",
|
@@ -9,12 +9,12 @@
|
|
9
9
|
"@angular/forms": "~15.2.0",
|
10
10
|
"@angular/platform-browser-dynamic": "~15.2.0",
|
11
11
|
"@angular/platform-browser": "~15.2.0",
|
12
|
-
"@veloceapps/core": "^
|
13
|
-
"@veloceapps/api": "^
|
14
|
-
"@veloceapps/components": "^
|
15
|
-
"ionicons": "^4.6.3",
|
12
|
+
"@veloceapps/core": "^9.0.0-0",
|
13
|
+
"@veloceapps/api": "^9.0.0-0",
|
14
|
+
"@veloceapps/components": "^9.0.0-0",
|
16
15
|
"rxjs": "~7.8.0",
|
17
|
-
"zone.js": "~0.12.0"
|
16
|
+
"zone.js": "~0.12.0",
|
17
|
+
"sass": "1.69.5"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
20
|
"@angular/cdk": "^15.2.0",
|
@@ -25,6 +25,7 @@
|
|
25
25
|
"moment": "^2.29.1",
|
26
26
|
"ngx-drag-drop": "^13.0.1",
|
27
27
|
"rfc6902": "^5.0.1",
|
28
|
+
"saas": "^1.0.0",
|
28
29
|
"tslib": "^2.3.0"
|
29
30
|
},
|
30
31
|
"sideEffects": false,
|
@@ -66,4 +67,4 @@
|
|
66
67
|
"default": "./fesm2020/veloceapps-sdk-core.mjs"
|
67
68
|
}
|
68
69
|
}
|
69
|
-
}
|
70
|
+
}
|
@@ -2,27 +2,24 @@ import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
-
import { ContextService,
|
5
|
+
import { ContextService, FlowCustomization, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
7
|
-
import { FlowService } from '../../services';
|
8
|
-
import { FlowCustomization } from '../../types';
|
9
7
|
import * as i0 from "@angular/core";
|
10
8
|
export declare class DocGenComponent implements OnDestroy {
|
11
|
-
private quoteDraftService;
|
12
|
-
private contextService;
|
13
9
|
private templatesApi;
|
10
|
+
private contextService;
|
11
|
+
private flowStateService;
|
12
|
+
private flowInfo;
|
14
13
|
private toastService;
|
15
|
-
private flowService;
|
16
14
|
private customizationService?;
|
17
15
|
uiDefinition$: BehaviorSubject<UIDefinition | null>;
|
18
16
|
private templateApiName;
|
19
17
|
private destroy$;
|
20
|
-
constructor(
|
18
|
+
constructor(templatesApi: UITemplatesApiService, contextService: ContextService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
21
19
|
ngOnDestroy(): void;
|
22
20
|
private initialize;
|
23
|
-
private
|
24
|
-
private
|
25
|
-
private getDocGenComponentMeta$;
|
21
|
+
private getLocalMeta$;
|
22
|
+
private getOrgMeta$;
|
26
23
|
private generateUIDefinition$;
|
27
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocGenComponent, [null, null, null, null, null, { optional: true; }]>;
|
28
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocGenComponent, "vl-flow-doc-gen", never, {}, {}, never, never, false, never>;
|
@@ -2,26 +2,23 @@ import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
-
import {
|
5
|
+
import { FlowCustomization, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
7
|
-
import { FlowService } from '../../services';
|
8
|
-
import { FlowCustomization } from '../../types';
|
9
7
|
import * as i0 from "@angular/core";
|
10
8
|
export declare class FlowHeaderComponent implements OnDestroy {
|
11
|
-
private quoteDraftService;
|
12
9
|
private templatesApi;
|
10
|
+
private flowStateService;
|
11
|
+
private flowInfo;
|
13
12
|
private toastService;
|
14
|
-
private flowService;
|
15
13
|
private customizationService?;
|
16
14
|
uiDefinition$: BehaviorSubject<UIDefinition | null>;
|
17
15
|
private templateApiName;
|
18
16
|
private destroy$;
|
19
|
-
constructor(
|
17
|
+
constructor(templatesApi: UITemplatesApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
20
18
|
ngOnDestroy(): void;
|
21
19
|
private initialize;
|
22
|
-
private
|
23
|
-
private
|
24
|
-
private getFlowHeaderComponentMeta$;
|
20
|
+
private getLocalMeta$;
|
21
|
+
private getOrgMeta$;
|
25
22
|
private generateUIDefinition$;
|
26
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowHeaderComponent, [null, null, null, null, { optional: true; }]>;
|
27
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<FlowHeaderComponent, "vl-flow-new-header", never, {}, {}, never, never, false, never>;
|
@@ -2,26 +2,23 @@ import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
-
import {
|
5
|
+
import { FlowCustomization, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
7
|
-
import { FlowService } from '../../services';
|
8
|
-
import { FlowCustomization } from '../../types';
|
9
7
|
import * as i0 from "@angular/core";
|
10
8
|
export declare class GuidedSellingComponent implements OnDestroy {
|
11
|
-
private quoteDraftService;
|
12
9
|
private templatesApi;
|
10
|
+
private flowStateService;
|
11
|
+
private flowInfo;
|
13
12
|
private toastService;
|
14
|
-
private flowService;
|
15
13
|
private customizationService?;
|
16
14
|
uiDefinition$: BehaviorSubject<UIDefinition | null>;
|
17
15
|
private templateApiName;
|
18
16
|
private destroy$;
|
19
|
-
constructor(
|
17
|
+
constructor(templatesApi: UITemplatesApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
20
18
|
ngOnDestroy(): void;
|
21
19
|
private initialize;
|
22
|
-
private
|
23
|
-
private
|
24
|
-
private getGuidedSellingComponentMeta$;
|
20
|
+
private getLocalMeta$;
|
21
|
+
private getOrgMeta$;
|
25
22
|
private generateUIDefinition$;
|
26
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuidedSellingComponent, [null, null, null, null, { optional: true; }]>;
|
27
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<GuidedSellingComponent, "vl-flow-guided-selling", never, {}, {}, never, never, false, never>;
|
@@ -5,9 +5,8 @@ import * as i3 from "./pages/shopping-cart/shopping-cart.module";
|
|
5
5
|
import * as i4 from "./pages/catalog/catalog.module";
|
6
6
|
import * as i5 from "./pages/assets/assets.module";
|
7
7
|
import * as i6 from "./pages/remote/remote.module";
|
8
|
-
import * as i7 from "./pages/empty-account/empty-account.module";
|
9
8
|
export declare class FlowRoutingModule {
|
10
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowRoutingModule, never>;
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.ShoppingCartModule, typeof i4.CatalogModule, typeof i5.AssetsModule, typeof i6.RemoteModule
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.ShoppingCartModule, typeof i4.CatalogModule, typeof i5.AssetsModule, typeof i6.RemoteModule], [typeof i1.RouterModule]>;
|
12
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowRoutingModule>;
|
13
12
|
}
|
package/src/flow.component.d.ts
CHANGED
@@ -1,24 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
import { IntegrationState } from '@veloceapps/sdk/cms';
|
3
|
-
import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
|
1
|
+
import { FlowInfoService } from '@veloceapps/sdk/core';
|
4
2
|
import { Observable } from 'rxjs';
|
5
3
|
import { FlowService } from './services';
|
6
|
-
import { FlowDocGenService } from './services/doc-gen.service';
|
7
4
|
import { FlowRouterService } from './services/flow-router.service';
|
5
|
+
import { FlowGuidedSellingService } from './services/guided-selling.service';
|
8
6
|
import * as i0 from "@angular/core";
|
9
|
-
export declare class FlowComponent
|
7
|
+
export declare class FlowComponent {
|
10
8
|
private routerService;
|
11
|
-
private quoteDraftService;
|
12
9
|
private flowService;
|
13
|
-
private
|
14
|
-
private
|
15
|
-
private contextService;
|
10
|
+
private flowInfo;
|
11
|
+
private guidedSellingService;
|
16
12
|
isLoading$: Observable<boolean>;
|
17
13
|
showHeader$: Observable<boolean>;
|
18
14
|
isStandalone$: Observable<boolean>;
|
19
|
-
|
20
|
-
|
21
|
-
ngOnDestroy(): void;
|
15
|
+
guidedSellingVisible$: Observable<boolean>;
|
16
|
+
constructor(routerService: FlowRouterService, flowService: FlowService, flowInfo: FlowInfoService, guidedSellingService: FlowGuidedSellingService);
|
22
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowComponent, never>;
|
23
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<FlowComponent, "vl-flow", never, {}, {}, never, never, false, never>;
|
24
19
|
}
|
@@ -14,7 +14,6 @@ export declare class ContextGuard implements CanActivate, CanActivateChild {
|
|
14
14
|
canActivateChild(childRoute: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
15
15
|
private get rpcMessageId();
|
16
16
|
private getConfigurationContextMode;
|
17
|
-
private handleError;
|
18
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextGuard, never>;
|
19
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<ContextGuard>;
|
20
19
|
}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { CanActivateFn } from '@angular/router';
|
2
|
-
export declare const
|
2
|
+
export declare const keepFlowInitialized: CanActivateFn;
|
@@ -2,9 +2,8 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
+
import { FlowCustomization, FlowInfoService } from '@veloceapps/sdk/core';
|
5
6
|
import { BehaviorSubject } from 'rxjs';
|
6
|
-
import { FlowService } from '../../services';
|
7
|
-
import { FlowCustomization } from '../../types';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
interface State {
|
10
9
|
loading: boolean;
|
@@ -14,18 +13,17 @@ export declare class AssetsComponent implements OnInit, OnDestroy {
|
|
14
13
|
private templatesApi;
|
15
14
|
private cdr;
|
16
15
|
private toastService;
|
17
|
-
private
|
16
|
+
private flowInfo;
|
18
17
|
private customizationService?;
|
19
18
|
uiDefinition?: UIDefinition;
|
20
19
|
state$: BehaviorSubject<State>;
|
21
20
|
private templateApiName;
|
22
21
|
private destroyed$;
|
23
|
-
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService,
|
22
|
+
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
|
24
23
|
ngOnInit(): void;
|
25
24
|
ngOnDestroy(): void;
|
26
|
-
private
|
27
|
-
private
|
28
|
-
private getAssetsComponentMeta$;
|
25
|
+
private getLocalMeta$;
|
26
|
+
private getOrgMeta$;
|
29
27
|
private generateUIDefinition$;
|
30
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssetsComponent, [null, null, null, null, { optional: true; }]>;
|
31
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<AssetsComponent, "vl-flow-assets", never, {}, {}, never, never, false, never>;
|
@@ -2,9 +2,8 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
+
import { FlowCustomization, FlowInfoService } from '@veloceapps/sdk/core';
|
5
6
|
import { BehaviorSubject } from 'rxjs';
|
6
|
-
import { FlowService } from '../../services';
|
7
|
-
import { FlowCustomization } from '../../types';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
interface State {
|
10
9
|
loading: boolean;
|
@@ -14,18 +13,17 @@ export declare class CatalogComponent implements OnInit, OnDestroy {
|
|
14
13
|
private templatesApi;
|
15
14
|
private cdr;
|
16
15
|
private toastService;
|
17
|
-
private
|
16
|
+
private flowInfo;
|
18
17
|
private customizationService?;
|
19
18
|
uiDefinition?: UIDefinition;
|
20
19
|
state$: BehaviorSubject<State>;
|
21
20
|
private templateApiName;
|
22
21
|
private destroyed$;
|
23
|
-
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService,
|
22
|
+
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
|
24
23
|
ngOnInit(): void;
|
25
24
|
ngOnDestroy(): void;
|
26
|
-
private
|
27
|
-
private
|
28
|
-
private getCatalogComponentMeta$;
|
25
|
+
private getLocalMeta$;
|
26
|
+
private getOrgMeta$;
|
29
27
|
private generateUIDefinition$;
|
30
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogComponent, [null, null, null, null, { optional: true; }]>;
|
31
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogComponent, "vl-flow-catalog", never, {}, {}, never, never, false, never>;
|
@@ -1,23 +1,24 @@
|
|
1
1
|
import { UIDefinition } from '@veloceapps/core';
|
2
|
-
import { CMSPreviewConfig
|
3
|
-
import { ConfigurationRuntimeService, ConfigurationService,
|
2
|
+
import { CMSPreviewConfig } from '@veloceapps/sdk/cms';
|
3
|
+
import { ConfigurationRuntimeService, ConfigurationService, ConfigurationStateService, ContextService, FlowCustomization, FlowInfoService, FlowStateService, IntegrationState, QuoteDraftService } from '@veloceapps/sdk/core';
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
5
|
-
import { FlowCustomization } from '../../types/flow-customization.types';
|
6
5
|
import * as i0 from "@angular/core";
|
7
6
|
export declare class ProductComponent {
|
8
7
|
private contextService;
|
9
8
|
private configurationRuntimeService;
|
10
9
|
private configurationService;
|
11
|
-
private
|
10
|
+
private configurationStateService;
|
12
11
|
private quoteDraftService;
|
12
|
+
private flowInfoService;
|
13
|
+
private flowStateService;
|
13
14
|
private integrationState;
|
14
15
|
private customizationService?;
|
15
16
|
config: CMSPreviewConfig;
|
16
17
|
uiDefinition$: BehaviorSubject<UIDefinition | undefined>;
|
17
|
-
constructor(contextService: ContextService, configurationRuntimeService: ConfigurationRuntimeService, configurationService: ConfigurationService,
|
18
|
+
constructor(contextService: ContextService, configurationRuntimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, configurationStateService: ConfigurationStateService, quoteDraftService: QuoteDraftService, flowInfoService: FlowInfoService, flowStateService: FlowStateService, integrationState: IntegrationState, customizationService?: FlowCustomization | undefined);
|
18
19
|
private customizeUI$;
|
19
20
|
private init$;
|
20
|
-
private
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
21
|
+
private getLineItem;
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
22
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductComponent, "vl-flow-product", never, {}, {}, never, never, false, never>;
|
23
24
|
}
|
@@ -5,6 +5,8 @@ export declare class RecordNotFoundComponent {
|
|
5
5
|
private route;
|
6
6
|
message: string;
|
7
7
|
subMessage: string;
|
8
|
+
type: string;
|
9
|
+
details: string[];
|
8
10
|
constructor(router: Router, route: ActivatedRoute);
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<RecordNotFoundComponent, never>;
|
10
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<RecordNotFoundComponent, "vl-flow-record-not-found", never, {}, {}, never, never, false, never>;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { Location } from '@angular/common';
|
2
2
|
import { OnDestroy } from '@angular/core';
|
3
3
|
import { UIDefinition } from '@veloceapps/core';
|
4
|
-
import { IntegrationState } from '@veloceapps/sdk/
|
5
|
-
import { ConfigurationRuntimeService, ConfigurationService, ConfigurationState, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
|
4
|
+
import { ConfigurationRuntimeService, ConfigurationService, ConfigurationStateService, ContextService, IntegrationState, QuoteDraftService } from '@veloceapps/sdk/core';
|
6
5
|
import { MessageService } from 'primeng/api';
|
7
6
|
import { BehaviorSubject } from 'rxjs';
|
8
7
|
import * as i0 from "@angular/core";
|
@@ -24,7 +23,7 @@ export declare class RemoteComponent implements OnDestroy {
|
|
24
23
|
private readonly DYNAMIC_OPTION_PRODUCTS_KEY;
|
25
24
|
private rpcMessage;
|
26
25
|
private destroyed$;
|
27
|
-
constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, configurationState:
|
26
|
+
constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, configurationState: ConfigurationStateService, messageService: MessageService, integrationState: IntegrationState, location: Location);
|
28
27
|
ngOnDestroy(): void;
|
29
28
|
private initConfiguration;
|
30
29
|
private throwIfNoUIDefinition;
|
@@ -2,9 +2,8 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
+
import { FlowCustomization, FlowInfoService } from '@veloceapps/sdk/core';
|
5
6
|
import { BehaviorSubject } from 'rxjs';
|
6
|
-
import { FlowService } from '../../services';
|
7
|
-
import { FlowCustomization } from '../../types';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
interface State {
|
10
9
|
loading: boolean;
|
@@ -14,18 +13,17 @@ export declare class ShoppingCartComponent implements OnInit, OnDestroy {
|
|
14
13
|
private templatesApi;
|
15
14
|
private cdr;
|
16
15
|
private toastService;
|
17
|
-
private
|
16
|
+
private flowInfo;
|
18
17
|
private customizationService?;
|
19
18
|
uiDefinition?: UIDefinition;
|
20
19
|
state$: BehaviorSubject<State>;
|
21
20
|
private templateApiName;
|
22
21
|
private destroyed$;
|
23
|
-
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService,
|
22
|
+
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
|
24
23
|
ngOnInit(): void;
|
25
24
|
ngOnDestroy(): void;
|
26
|
-
private
|
27
|
-
private
|
28
|
-
private getShoppingCartComponentMeta$;
|
25
|
+
private getLocalMeta$;
|
26
|
+
private getOrgMeta$;
|
29
27
|
private generateUIDefinition$;
|
30
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartComponent, [null, null, null, null, { optional: true; }]>;
|
31
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<ShoppingCartComponent, "vl-flow-shopping-cart", never, {}, {}, never, never, false, never>;
|
@@ -1,18 +1,15 @@
|
|
1
1
|
import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { FlowService } from '../services';
|
2
|
+
import { ContextService, FlowInfoService } from '@veloceapps/sdk/core';
|
3
|
+
import { Observable } from 'rxjs';
|
5
4
|
import { FlowRouterService } from '../services/flow-router.service';
|
6
5
|
import * as i0 from "@angular/core";
|
7
|
-
export declare class FlowResolver implements Resolve<
|
6
|
+
export declare class FlowResolver implements Resolve<unknown> {
|
8
7
|
private router;
|
9
|
-
private flowsApiService;
|
10
8
|
private routerService;
|
11
9
|
private contextService;
|
12
|
-
private
|
13
|
-
constructor(router: Router,
|
14
|
-
|
15
|
-
resolve(route: ActivatedRouteSnapshot): any;
|
10
|
+
private flowInfo;
|
11
|
+
constructor(router: Router, routerService: FlowRouterService, contextService: ContextService, flowInfo: FlowInfoService);
|
12
|
+
resolve(route: ActivatedRouteSnapshot): Observable<boolean>;
|
16
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowResolver, never>;
|
17
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowResolver>;
|
18
15
|
}
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router';
|
2
|
-
import {
|
3
|
-
import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloceapps/sdk/core';
|
2
|
+
import { ContextService, FlowInfoService, FlowStateService, QuoteDraftService } from '@veloceapps/sdk/core';
|
4
3
|
import { Observable } from 'rxjs';
|
5
|
-
import { FlowService } from '../services';
|
6
4
|
import { FlowRouterService } from '../services/flow-router.service';
|
7
5
|
import * as i0 from "@angular/core";
|
8
6
|
export declare class QuoteResolver implements Resolve<void | boolean> {
|
@@ -10,17 +8,12 @@ export declare class QuoteResolver implements Resolve<void | boolean> {
|
|
10
8
|
private quoteDraftService;
|
11
9
|
private routerService;
|
12
10
|
private contextService;
|
13
|
-
private
|
14
|
-
private
|
15
|
-
|
16
|
-
|
17
|
-
private
|
18
|
-
private
|
19
|
-
resolve(route: ActivatedRouteSnapshot): Observable<void | boolean>;
|
20
|
-
private changeNavigation;
|
21
|
-
private shouldNavigateToAssets;
|
22
|
-
private accountHasNotAssets;
|
23
|
-
private initializeModifiedAssetsMap;
|
11
|
+
private flowInfo;
|
12
|
+
private flowStateService;
|
13
|
+
constructor(router: Router, quoteDraftService: QuoteDraftService, routerService: FlowRouterService, contextService: ContextService, flowInfo: FlowInfoService, flowStateService: FlowStateService);
|
14
|
+
resolve(route: ActivatedRouteSnapshot): Observable<boolean>;
|
15
|
+
private checkDynamicNavigation$;
|
16
|
+
private getNavigateTo;
|
24
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuoteResolver, never>;
|
25
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<QuoteResolver>;
|
26
19
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ContextService } from '@veloceapps/sdk/core';
|
1
|
+
import { ContextService, RuntimeSettingsService } from '@veloceapps/sdk/core';
|
2
2
|
import { DialogService } from 'primeng/dynamicdialog';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { FlowDialogConfig } from '../components/dialog/dialog.types';
|
@@ -6,7 +6,8 @@ import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FlowDialogService {
|
7
7
|
private dialogService;
|
8
8
|
private contextService;
|
9
|
-
|
9
|
+
private runtimeSettings;
|
10
|
+
constructor(dialogService: DialogService, contextService: ContextService, runtimeSettings: RuntimeSettingsService);
|
10
11
|
show(config: FlowDialogConfig): Observable<boolean>;
|
11
12
|
showEmptyCartDialog(): Observable<boolean>;
|
12
13
|
showReadonlyModeDialog(): Observable<boolean>;
|
@@ -21,6 +22,7 @@ export declare class FlowDialogService {
|
|
21
22
|
showDocgenReadonlyDialog(): Observable<boolean>;
|
22
23
|
showDocgenOutsideShoppingCartDialog(): Observable<boolean>;
|
23
24
|
showDocgenUnsavedChangesDialog(): Observable<boolean>;
|
25
|
+
showTermsLimitReachedDialog(): Observable<boolean>;
|
24
26
|
showDialog(dialog: keyof Omit<FlowDialogService, 'show' | 'constructor'>): Observable<boolean>;
|
25
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogService, never>;
|
26
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowDialogService>;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { ActivatedRoute, ActivatedRouteSnapshot, Params, Router } from '@angular/router';
|
2
|
-
import { IntegrationState } from '@veloceapps/sdk/
|
3
|
-
import { ContextService } from '@veloceapps/sdk/core';
|
2
|
+
import { ContextService, FlowInfoService, FlowStateService, IntegrationState } from '@veloceapps/sdk/core';
|
4
3
|
import { Observable } from 'rxjs';
|
5
4
|
import * as i0 from "@angular/core";
|
6
5
|
export declare class FlowRouterService {
|
@@ -8,16 +7,19 @@ export declare class FlowRouterService {
|
|
8
7
|
private route;
|
9
8
|
private contextService;
|
10
9
|
private integrationState;
|
10
|
+
private flowInfoService;
|
11
|
+
private flowStateService;
|
11
12
|
private routeChange$;
|
12
13
|
private lastChildParams$;
|
13
14
|
private lastChildRoute$;
|
14
15
|
private urlHistory;
|
15
16
|
loading$: Observable<boolean>;
|
16
|
-
constructor(router: Router, route: ActivatedRoute, contextService: ContextService, integrationState: IntegrationState);
|
17
|
+
constructor(router: Router, route: ActivatedRoute, contextService: ContextService, integrationState: IntegrationState, flowInfoService: FlowInfoService, flowStateService: FlowStateService);
|
17
18
|
getFlowRootRoute(route: ActivatedRouteSnapshot): ActivatedRouteSnapshot | undefined;
|
18
19
|
getFlowRootPath(route: ActivatedRouteSnapshot): string;
|
19
20
|
get route$(): Observable<ActivatedRouteSnapshot>;
|
20
21
|
get params$(): Observable<Params>;
|
22
|
+
get params(): Params;
|
21
23
|
getLastChildRoute: (route: ActivatedRoute) => ActivatedRoute;
|
22
24
|
getNthChildRoute: (route: ActivatedRoute, index: number) => ActivatedRoute;
|
23
25
|
getLastChildRouteSnapshot: (route: ActivatedRouteSnapshot) => ActivatedRouteSnapshot;
|
@@ -35,6 +37,7 @@ export declare class FlowRouterService {
|
|
35
37
|
navigateToShoppingCart(): void;
|
36
38
|
navigateToCatalog(): void;
|
37
39
|
navigateToAssets(): void;
|
40
|
+
showErrorPage$(message: string, details?: string[]): Observable<false>;
|
38
41
|
switchObject(id: string): void;
|
39
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowRouterService, never>;
|
40
43
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowRouterService>;
|
@@ -1,29 +1,25 @@
|
|
1
|
-
import { FlowsApiService } from '@veloceapps/api';
|
2
|
-
import { Flow } from '@veloceapps/core';
|
3
1
|
import { IntegrationState } from '@veloceapps/sdk/cms';
|
4
|
-
import { ConfigurationService, FlowConfigurationService, QuoteDraftService } from '@veloceapps/sdk/core';
|
5
|
-
import { Observable } from 'rxjs';
|
6
|
-
import { FlowRouterService } from './flow-router.service';
|
2
|
+
import { ConfigurationService, ConfigurationStateService, FlowConfigurationService, FlowInfoService, FlowStateService, QuoteDraftService } from '@veloceapps/sdk/core';
|
7
3
|
import { FlowDialogService } from './flow-dialog.service';
|
4
|
+
import { FlowRouterService } from './flow-router.service';
|
8
5
|
import * as i0 from "@angular/core";
|
9
6
|
export declare class FlowService {
|
10
7
|
private integrationState;
|
11
8
|
private flowRouterService;
|
12
9
|
private quoteDraftService;
|
13
10
|
private configurationService;
|
14
|
-
private
|
15
|
-
private flowsApiService;
|
11
|
+
private configurationStateService;
|
16
12
|
private flowDialogService;
|
17
|
-
private
|
18
|
-
|
19
|
-
|
13
|
+
private flowConfigurationService;
|
14
|
+
private flowInfoService;
|
15
|
+
private flowStateService;
|
20
16
|
private cleanup$;
|
21
|
-
constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowConfigurationService: FlowConfigurationService,
|
17
|
+
constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, configurationStateService: ConfigurationStateService, flowDialogService: FlowDialogService, flowConfigurationService: FlowConfigurationService, flowInfoService: FlowInfoService, flowStateService: FlowStateService);
|
22
18
|
cleanup(): void;
|
23
|
-
setFlow(flow?: Flow): void;
|
24
|
-
setFlowById$(flowId: string): Observable<boolean>;
|
25
19
|
initSubscriptions(): void;
|
26
|
-
private
|
20
|
+
private updateFlowParams;
|
21
|
+
private prepareConfiguration$;
|
22
|
+
private legacyApplyConfiguration;
|
27
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowService, never>;
|
28
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowService>;
|
29
25
|
}
|
package/src/types/index.d.ts
CHANGED
@@ -1,30 +0,0 @@
|
|
1
|
-
import { StatefulConfigurationApiService } from '@veloceapps/api';
|
2
|
-
import { ToastService } from '@veloceapps/components';
|
3
|
-
import { ConfigurationExecuteRequest } from '@veloceapps/core';
|
4
|
-
import { Observable } from 'rxjs';
|
5
|
-
import { ConfigurationRuntimeService } from './configuration-runtime.service';
|
6
|
-
import { ConfigurationService } from './configuration.service';
|
7
|
-
import * as i0 from "@angular/core";
|
8
|
-
export declare class ConfigurationState {
|
9
|
-
private statefulConfigurationApiService;
|
10
|
-
private runtimeService;
|
11
|
-
private configurationService;
|
12
|
-
private toastService;
|
13
|
-
private readonly stateSubj$;
|
14
|
-
state$: Observable<Record<string, unknown>>;
|
15
|
-
private stateId;
|
16
|
-
constructor(statefulConfigurationApiService: StatefulConfigurationApiService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, toastService: ToastService);
|
17
|
-
init$(): Observable<void>;
|
18
|
-
cleanup(): void;
|
19
|
-
execute$(req: ConfigurationExecuteRequest): Observable<void>;
|
20
|
-
dispatch$(actionName: string, inputData: unknown): Observable<void>;
|
21
|
-
select$(selectorName: string, inputData: unknown): Observable<unknown>;
|
22
|
-
private get isStatefulConfiguration();
|
23
|
-
private executeStateless$;
|
24
|
-
private executeStateful$;
|
25
|
-
private executeActionScript;
|
26
|
-
private executeSelectorScript;
|
27
|
-
private executeProcessorScript;
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationState, never>;
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationState>;
|
30
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { ConfigurationSettingsApiService } from '@veloceapps/api';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { FlowConfigurationService } from '../../modules/flow-configuration/services/flow-configuration.service';
|
4
|
-
import { QuoteDraftService } from '../quote-draft.service';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export declare class MetricsCalculationService {
|
7
|
-
private quoteDraftService;
|
8
|
-
private flowConfiguration;
|
9
|
-
private settingsService;
|
10
|
-
get onMetricsUpdate$(): Observable<void>;
|
11
|
-
private metricsUpdated$;
|
12
|
-
private quoteMetricsSettings;
|
13
|
-
private metricsCalculationMethodMap;
|
14
|
-
private metricsData;
|
15
|
-
private activeMetricRules;
|
16
|
-
constructor(quoteDraftService: QuoteDraftService, flowConfiguration: FlowConfigurationService, settingsService: ConfigurationSettingsApiService);
|
17
|
-
getMetricValue(metric: string): number;
|
18
|
-
private updateMetrics;
|
19
|
-
private calculateMetric;
|
20
|
-
private buildMetricsCalculationMethods;
|
21
|
-
private collectMetricKeys;
|
22
|
-
private getMetricRuleByTotalMetricName;
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MetricsCalculationService, never>;
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MetricsCalculationService>;
|
25
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export type MetricCalculationMethod = 'last' | 'first' | 'avg' | 'sum';
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { LineItem } from '@veloceapps/core';
|
2
|
-
import { MetricCalculationMethod } from './metric-calculation.types';
|
3
|
-
export declare function calculateMetricByMethod(lineItems: LineItem[], metric: string, method: MetricCalculationMethod): number;
|
4
|
-
export declare function getLineItemsByMethod(lineItems: LineItem[], method: MetricCalculationMethod): LineItem[][];
|
5
|
-
export declare function getDateValue(date: string): number;
|