@veloceapps/sdk 2.0.18 → 2.0.20
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/bundles/veloce-sdk-cms.umd.js +18 -1
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-runtime.umd.js +3 -4
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +22 -6
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/utils/element.utils.d.ts +1 -0
- package/esm2015/cms/utils/element.utils.js +16 -1
- package/esm2015/runtime/execution/directives/vl-quote.directive.js +2 -2
- package/esm2015/runtime/services/quote.service.js +2 -3
- package/esm2015/src/pages/legacy-product/legacy-product.component.js +22 -8
- package/esm2015/src/types/flow-customization.types.js +1 -1
- package/fesm2015/veloce-sdk-cms.js +17 -1
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-runtime.js +2 -3
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +22 -9
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +2 -1
- package/src/pages/legacy-product/legacy-product.component.d.ts +5 -2
- package/src/types/flow-customization.types.d.ts +2 -0
|
@@ -985,7 +985,7 @@ class QuoteService {
|
|
|
985
985
|
this.quote = new BehaviorSubject(null);
|
|
986
986
|
}
|
|
987
987
|
init(quoteId, params) {
|
|
988
|
-
return zip(this.quoteApiService.
|
|
988
|
+
return zip(this.quoteApiService.getQuoteDraft(quoteId, params), this.priceApiService.getPriceLists(), this.contextService.resolve$().pipe(filter(Boolean), map(context => context))).pipe(tap(([quote, priceLists, configurationContext]) => {
|
|
989
989
|
this.quote.next(quote);
|
|
990
990
|
this.priceLists = priceLists;
|
|
991
991
|
this.quotePriceList = priceLists.find(p => p.id === configurationContext.priceListId);
|
|
@@ -1019,7 +1019,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
1019
1019
|
type: Injectable,
|
|
1020
1020
|
args: [{ providedIn: 'root' }]
|
|
1021
1021
|
}], ctorParameters: function () { return [{ type: ContextService }, { type: i1.QuoteApiService }, { type: i1.PriceApiService }]; } });
|
|
1022
|
-
``;
|
|
1023
1022
|
|
|
1024
1023
|
class ShoppingCartService {
|
|
1025
1024
|
constructor(priceApiService, contextService, quoteService) {
|
|
@@ -2670,7 +2669,7 @@ class VlQuoteDirective {
|
|
|
2670
2669
|
this.runtimeService = runtimeService;
|
|
2671
2670
|
}
|
|
2672
2671
|
getQuote(quoteId) {
|
|
2673
|
-
return this.quoteApiService.
|
|
2672
|
+
return this.quoteApiService.getQuoteDraft(quoteId).toPromise();
|
|
2674
2673
|
}
|
|
2675
2674
|
upsertQuote(quoteDraft) {
|
|
2676
2675
|
return this.quoteApiService.upsertQuote(quoteDraft).toPromise();
|