sk-front-lib 0.14.7-alpha.5 → 0.14.8
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/sk-front-lib-crud.umd.js +4 -6
- package/bundles/sk-front-lib-crud.umd.js.map +1 -1
- package/bundles/sk-front-lib-crud.umd.min.js +1 -1
- package/bundles/sk-front-lib-crud.umd.min.js.map +1 -1
- package/bundles/sk-front-lib-model.umd.js.map +1 -1
- package/bundles/sk-front-lib-model.umd.min.js.map +1 -1
- package/bundles/sk-front-lib.umd.js +7 -0
- package/bundles/sk-front-lib.umd.js.map +1 -1
- package/bundles/sk-front-lib.umd.min.js +1 -1
- package/bundles/sk-front-lib.umd.min.js.map +1 -1
- package/crud/sk-front-lib-crud.metadata.json +1 -1
- package/crud/sk-promotion.service.d.ts +1 -2
- package/esm2015/crud/sk-cart.service.js +5 -4
- package/esm2015/crud/sk-promotion.service.js +1 -4
- package/esm2015/lib/sk-animations.js +8 -1
- package/esm2015/model/lib/cart.js +1 -1
- package/fesm2015/sk-front-lib-crud.js +4 -6
- package/fesm2015/sk-front-lib-crud.js.map +1 -1
- package/fesm2015/sk-front-lib-model.js.map +1 -1
- package/fesm2015/sk-front-lib.js +7 -0
- package/fesm2015/sk-front-lib.js.map +1 -1
- package/model/lib/cart.d.ts +3 -1
- package/package.json +1 -1
- package/sk-front-lib.metadata.json +1 -1
|
@@ -652,9 +652,6 @@
|
|
|
652
652
|
SkPromotionService.prototype.getAdminPromotion = function (id) {
|
|
653
653
|
return this._apiService.get("/api/admin/promotions/" + id).pipe(operators.map(function (response) { return new model.SkPromotion(response.data); }));
|
|
654
654
|
};
|
|
655
|
-
SkPromotionService.prototype.getAdminPromotionGift = function (id) {
|
|
656
|
-
return this._apiService.get("/api/admin/promotions/" + id + "/gift").pipe(operators.map(function (response) { return response.data; }));
|
|
657
|
-
};
|
|
658
655
|
SkPromotionService.prototype.getAdminPromotionTarget = function (id) {
|
|
659
656
|
return this._apiService.get("/api/admin/promotions/" + id + "/target").pipe(operators.map(function (response) { return response.data; }));
|
|
660
657
|
};
|
|
@@ -1078,10 +1075,11 @@
|
|
|
1078
1075
|
product: cart.product.id,
|
|
1079
1076
|
selectedOptions: cart.options.map(function (item) { return ({
|
|
1080
1077
|
value: item.value.id,
|
|
1081
|
-
option: item.option.id
|
|
1078
|
+
option: item.option.id,
|
|
1079
|
+
amount: item.amount
|
|
1082
1080
|
}); }),
|
|
1083
1081
|
amount: cart.amount,
|
|
1084
|
-
selectedGifts: (cart.gifts || []).map(function (item) { return item.id; })
|
|
1082
|
+
selectedGifts: (cart.gifts || []).map(function (item) { return ({ id: item.id }); })
|
|
1085
1083
|
};
|
|
1086
1084
|
return this._apiService.post("/api/public/carts", data).pipe(operators.map(function (response) { return (response.data || []).map(function (item) { return new model.SkCart(item); }); }));
|
|
1087
1085
|
};
|
|
@@ -1308,7 +1306,7 @@
|
|
|
1308
1306
|
valueId: option.value.id,
|
|
1309
1307
|
amount: option.amount || 1
|
|
1310
1308
|
}); }),
|
|
1311
|
-
|
|
1309
|
+
gifts: (cart.gifts || []).map(function (item) { return ({ id: item.id }); })
|
|
1312
1310
|
}); })
|
|
1313
1311
|
};
|
|
1314
1312
|
}
|