@daffodil/cart 0.39.5 → 0.39.9
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/daffodil-cart-driver-magento.umd.js +3 -1
- package/bundles/daffodil-cart-driver-magento.umd.js.map +1 -1
- package/bundles/daffodil-cart-driver-magento.umd.min.js +1 -1
- package/bundles/daffodil-cart-driver-magento.umd.min.js.map +1 -1
- package/bundles/daffodil-cart-driver.umd.js +34 -1
- package/bundles/daffodil-cart-driver.umd.js.map +1 -1
- package/bundles/daffodil-cart-driver.umd.min.js +2 -2
- package/bundles/daffodil-cart-driver.umd.min.js.map +1 -1
- package/bundles/daffodil-cart-state-testing.umd.js +10 -2
- package/bundles/daffodil-cart-state-testing.umd.js.map +1 -1
- package/bundles/daffodil-cart-state-testing.umd.min.js +2 -2
- package/bundles/daffodil-cart-state-testing.umd.min.js.map +1 -1
- package/bundles/daffodil-cart-state.umd.js +33 -7
- package/bundles/daffodil-cart-state.umd.js.map +1 -1
- package/bundles/daffodil-cart-state.umd.min.js +1 -1
- package/bundles/daffodil-cart-state.umd.min.js.map +1 -1
- package/driver/daffodil-cart-driver.metadata.json +1 -1
- package/driver/errors/codes.enum.d.ts +3 -1
- package/driver/errors/invalid-email.d.ts +8 -0
- package/driver/errors/item-exceeds-max-qty.d.ts +9 -0
- package/driver/errors/map.d.ts +4 -0
- package/driver/errors/product-out-of-stock.d.ts +1 -1
- package/driver/errors/public_api.d.ts +2 -0
- package/driver/magento/errors/map.d.ts +2 -0
- package/esm2015/driver/errors/codes.enum.js +3 -1
- package/esm2015/driver/errors/invalid-email.js +12 -0
- package/esm2015/driver/errors/item-exceeds-max-qty.js +13 -0
- package/esm2015/driver/errors/map.js +5 -1
- package/esm2015/driver/errors/product-out-of-stock.js +2 -2
- package/esm2015/driver/errors/public_api.js +3 -1
- package/esm2015/driver/magento/errors/map.js +4 -2
- package/esm2015/state/actions/cart-coupon.actions.js +10 -1
- package/esm2015/state/effects/cart-resolver.effects.js +5 -2
- package/esm2015/state/facades/cart/cart-facade.interface.js +1 -1
- package/esm2015/state/facades/cart/cart.facade.js +7 -2
- package/esm2015/state/models/stateful-cart-item.js +1 -1
- package/esm2015/state/reducers/cart-coupon/cart-coupon.reducer.js +3 -1
- package/esm2015/state/reducers/cart-item/cart-item.reducer.js +3 -1
- package/esm2015/state/reducers/cart-item-entities/cart-item-entities.reducer.js +8 -7
- package/esm2015/state/selectors/cart-item-entities/cart-item-entities.selectors.js +3 -1
- package/esm2015/state/testing/factories/stateful-cart-item.factory.js +2 -1
- package/esm2015/state/testing/factories/stateful-composite-cart-item.factory.js +5 -1
- package/esm2015/state/testing/factories/stateful-configurable-cart-item.factory.js +5 -1
- package/esm2015/state/testing/mock-cart-facade.js +4 -1
- package/fesm2015/daffodil-cart-driver-magento.js +3 -1
- package/fesm2015/daffodil-cart-driver-magento.js.map +1 -1
- package/fesm2015/daffodil-cart-driver.js +27 -2
- package/fesm2015/daffodil-cart-driver.js.map +1 -1
- package/fesm2015/daffodil-cart-state-testing.js +12 -0
- package/fesm2015/daffodil-cart-state-testing.js.map +1 -1
- package/fesm2015/daffodil-cart-state.js +33 -9
- package/fesm2015/daffodil-cart-state.js.map +1 -1
- package/package.json +5 -5
- package/state/actions/cart-coupon.actions.d.ts +9 -2
- package/state/daffodil-cart-state.metadata.json +1 -1
- package/state/facades/cart/cart-facade.interface.d.ts +4 -0
- package/state/facades/cart/cart.facade.d.ts +2 -0
- package/state/models/stateful-cart-item.d.ts +5 -0
- package/state/selectors/cart-item-entities/cart-item-entities.selectors.d.ts +5 -0
- package/state/testing/daffodil-cart-state-testing.metadata.json +1 -1
- package/state/testing/factories/stateful-cart-item.factory.d.ts +1 -0
- package/state/testing/factories/stateful-composite-cart-item.factory.d.ts +1 -0
- package/state/testing/factories/stateful-configurable-cart-item.factory.d.ts +1 -0
- package/state/testing/mock-cart-facade.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daffodil/cart",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.9",
|
|
4
4
|
"description": "Interfaces built for daffodil/state",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@angular/common": "^11.0.0",
|
|
17
17
|
"@angular/core": "^11.0.0",
|
|
18
|
-
"@daffodil/core": "0.39.
|
|
19
|
-
"@daffodil/product": "0.39.
|
|
20
|
-
"@daffodil/geography": "0.39.
|
|
18
|
+
"@daffodil/core": "0.39.9",
|
|
19
|
+
"@daffodil/product": "0.39.9",
|
|
20
|
+
"@daffodil/geography": "0.39.9",
|
|
21
21
|
"@ngrx/effects": "^11.0.0",
|
|
22
22
|
"@ngrx/entity": "^11.0.0",
|
|
23
23
|
"@ngrx/store": "^11.0.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"angular-in-memory-web-api": "^0.11.0",
|
|
29
29
|
"apollo-angular": "^2.4.0",
|
|
30
30
|
"@apollo/client": "^3.0.0",
|
|
31
|
-
"@daffodil/driver": "0.39.
|
|
31
|
+
"@daffodil/driver": "0.39.9"
|
|
32
32
|
},
|
|
33
33
|
"main": "bundles/daffodil-cart.umd.js",
|
|
34
34
|
"module": "fesm2015/daffodil-cart.js",
|
|
@@ -16,7 +16,8 @@ export declare enum DaffCartCouponActionTypes {
|
|
|
16
16
|
CartCouponRemoveFailureAction = "[DaffCart] Cart Coupon Remove Failure Action",
|
|
17
17
|
CartCouponRemoveAllAction = "[DaffCart] Cart Coupon Remove All Action",
|
|
18
18
|
CartCouponRemoveAllSuccessAction = "[DaffCart] Cart Coupon Remove All Success Action",
|
|
19
|
-
CartCouponRemoveAllFailureAction = "[DaffCart] Cart Coupon Remove All Failure Action"
|
|
19
|
+
CartCouponRemoveAllFailureAction = "[DaffCart] Cart Coupon Remove All Failure Action",
|
|
20
|
+
CartCouponClearErrorsAction = "[DaffCart] Cart Coupon Clear Errors Action"
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Triggers the application of a cart coupon.
|
|
@@ -110,7 +111,13 @@ export declare class DaffCartCouponRemoveAllFailure implements Action {
|
|
|
110
111
|
readonly type = DaffCartCouponActionTypes.CartCouponRemoveAllFailureAction;
|
|
111
112
|
constructor(payload: DaffStateError);
|
|
112
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Removes the errors in cart coupon state.
|
|
116
|
+
*/
|
|
117
|
+
export declare class DaffCartCouponClearErrors implements Action {
|
|
118
|
+
readonly type = DaffCartCouponActionTypes.CartCouponClearErrorsAction;
|
|
119
|
+
}
|
|
113
120
|
/**
|
|
114
121
|
* A union of all the cart coupon action classes.
|
|
115
122
|
*/
|
|
116
|
-
export declare type DaffCartCouponActions<T extends DaffCart = DaffCart, V extends DaffCartCoupon = DaffCartCoupon> = DaffCartCouponApply<V> | DaffCartCouponApplySuccess<T> | DaffCartCouponApplyFailure | DaffCartCouponList | DaffCartCouponListSuccess<V> | DaffCartCouponListFailure | DaffCartCouponRemove<V> | DaffCartCouponRemoveSuccess<T> | DaffCartCouponRemoveFailure | DaffCartCouponRemoveAll | DaffCartCouponRemoveAllSuccess<T> | DaffCartCouponRemoveAllFailure;
|
|
123
|
+
export declare type DaffCartCouponActions<T extends DaffCart = DaffCart, V extends DaffCartCoupon = DaffCartCoupon> = DaffCartCouponApply<V> | DaffCartCouponApplySuccess<T> | DaffCartCouponApplyFailure | DaffCartCouponList | DaffCartCouponListSuccess<V> | DaffCartCouponListFailure | DaffCartCouponRemove<V> | DaffCartCouponRemoveSuccess<T> | DaffCartCouponRemoveFailure | DaffCartCouponRemoveAll | DaffCartCouponRemoveAllSuccess<T> | DaffCartCouponRemoveAllFailure | DaffCartCouponClearErrors;
|