@daffodil/cart 0.39.10 → 0.39.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/bundles/daffodil-cart-driver-in-memory.umd.js +4 -1
- package/bundles/daffodil-cart-driver-in-memory.umd.js.map +1 -1
- package/bundles/daffodil-cart-driver-in-memory.umd.min.js +1 -1
- package/bundles/daffodil-cart-driver-in-memory.umd.min.js.map +1 -1
- package/bundles/daffodil-cart-driver-magento-testing.umd.js +10 -0
- package/bundles/daffodil-cart-driver-magento-testing.umd.js.map +1 -1
- package/bundles/daffodil-cart-driver-magento-testing.umd.min.js +1 -1
- package/bundles/daffodil-cart-driver-magento-testing.umd.min.js.map +1 -1
- package/bundles/daffodil-cart-driver-magento.umd.js +33 -5
- 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-testing.umd.js +4 -1
- package/bundles/daffodil-cart-driver-testing.umd.js.map +1 -1
- package/bundles/daffodil-cart-driver-testing.umd.min.js +1 -1
- package/bundles/daffodil-cart-driver-testing.umd.min.js.map +1 -1
- package/bundles/daffodil-cart-driver.umd.js.map +1 -1
- package/bundles/daffodil-cart-driver.umd.min.js.map +1 -1
- package/bundles/daffodil-cart-state-testing.umd.js +1 -0
- package/bundles/daffodil-cart-state-testing.umd.js.map +1 -1
- package/bundles/daffodil-cart-state-testing.umd.min.js +1 -1
- package/bundles/daffodil-cart-state-testing.umd.min.js.map +1 -1
- package/bundles/daffodil-cart-state.umd.js +149 -27
- 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/in-memory/daffodil-cart-driver-in-memory.metadata.json +1 -1
- package/driver/in-memory/drivers/cart/cart.service.d.ts +3 -2
- package/driver/interfaces/cart-service.interface.d.ts +2 -1
- package/driver/magento/cart.service.d.ts +2 -1
- package/driver/magento/daffodil-cart-driver-magento.metadata.json +1 -1
- package/driver/magento/errors/transform.d.ts +13 -1
- package/driver/magento/testing/daffodil-cart-driver-magento-testing.metadata.json +1 -1
- package/driver/magento/testing/factories/public_api.d.ts +10 -10
- package/driver/testing/daffodil-cart-driver-testing.metadata.json +1 -1
- package/driver/testing/drivers/cart/cart.service.d.ts +2 -1
- package/esm2015/driver/in-memory/drivers/cart/cart.service.js +5 -2
- package/esm2015/driver/interfaces/cart-service.interface.js +1 -1
- package/esm2015/driver/magento/cart.service.js +20 -7
- package/esm2015/driver/magento/errors/transform.js +15 -6
- package/esm2015/driver/magento/testing/factories/public_api.js +11 -11
- package/esm2015/driver/testing/drivers/cart/cart.service.js +5 -2
- package/esm2015/state/actions/cart-item.actions.js +30 -1
- package/esm2015/state/actions/cart.actions.js +29 -1
- package/esm2015/state/effects/cart-item.effects.js +17 -6
- package/esm2015/state/effects/cart-resolver.effects.js +23 -10
- package/esm2015/state/effects/cart.effects.js +13 -4
- package/esm2015/state/facades/cart/cart-facade.interface.js +1 -1
- package/esm2015/state/facades/cart/cart.facade.js +3 -2
- package/esm2015/state/reducers/cart/cart.reducer.js +7 -4
- package/esm2015/state/reducers/cart-item/cart-item.reducer.js +11 -3
- package/esm2015/state/reducers/cart-item-entities/cart-item-entities.reducer.js +4 -1
- package/esm2015/state/reducers/errors/error-state-helpers.js +3 -3
- package/esm2015/state/testing/mock-cart-facade.js +2 -1
- package/fesm2015/daffodil-cart-driver-in-memory.js +4 -1
- package/fesm2015/daffodil-cart-driver-in-memory.js.map +1 -1
- package/fesm2015/daffodil-cart-driver-magento-testing.js +1 -1
- package/fesm2015/daffodil-cart-driver-magento.js +31 -9
- package/fesm2015/daffodil-cart-driver-magento.js.map +1 -1
- package/fesm2015/daffodil-cart-driver-testing.js +4 -1
- package/fesm2015/daffodil-cart-driver-testing.js.map +1 -1
- package/fesm2015/daffodil-cart-driver.js.map +1 -1
- package/fesm2015/daffodil-cart-state-testing.js +1 -0
- package/fesm2015/daffodil-cart-state-testing.js.map +1 -1
- package/fesm2015/daffodil-cart-state.js +128 -26
- package/fesm2015/daffodil-cart-state.js.map +1 -1
- package/package.json +5 -5
- package/state/actions/cart-item.actions.d.ts +26 -1
- package/state/actions/cart.actions.d.ts +31 -5
- package/state/daffodil-cart-state.metadata.json +1 -1
- package/state/effects/cart-item.effects.d.ts +5 -2
- package/state/effects/cart.effects.d.ts +2 -2
- package/state/facades/cart/cart-facade.interface.d.ts +7 -0
- package/state/facades/cart/cart.facade.d.ts +1 -0
- package/state/reducers/errors/error-state-helpers.d.ts +1 -1
- package/state/testing/mock-cart-facade.d.ts +1 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { createFeatureSelector, createSelector, defaultMemoize,
|
|
1
|
+
import { createFeatureSelector, createSelector, defaultMemoize, select, Store, combineReducers, StoreModule } from '@ngrx/store';
|
|
2
2
|
import { createEntityAdapter } from '@ngrx/entity';
|
|
3
3
|
import { daffComposeReducers } from '@daffodil/core/state';
|
|
4
|
+
import { DaffCartDriverErrorCodes, DaffCartAddressDriver, DaffCartBillingAddressDriver, DaffCartCouponDriver, DaffCartItemDriver, DaffCartOrderDriver, DaffCartPaymentMethodsDriver, DaffCartPaymentDriver, DaffCartNotFoundError, DaffCartDriver, DaffCartShippingAddressDriver, DaffCartShippingInformationDriver, DaffCartShippingMethodsDriver } from '@daffodil/cart/driver';
|
|
4
5
|
import { InjectionToken, Injectable, Inject, inject, NgModule, ɵɵdefineInjectable, ɵɵinject } from '@angular/core';
|
|
5
|
-
import { DaffCartItemInputType, DaffCartTotalTypeEnum, DAFF_CART_ERROR_MATCHER, DaffCartStorageService,
|
|
6
|
+
import { DaffCartItemInputType, DaffCartTotalTypeEnum, DAFF_CART_ERROR_MATCHER, DaffCartStorageService, DaffCartNotFoundOrCreatedResolutionError, DaffCartResolutionError, DaffCartStorageResolutionError, DaffCartServerSideResolutionError, DaffCartPaymentMethodIdMap } from '@daffodil/cart';
|
|
6
7
|
import { daffAdd, DaffStorageServiceError, DaffInheritableError, DaffServerSideStorageError } from '@daffodil/core';
|
|
7
8
|
import { daffComparePersonalAddresses } from '@daffodil/geography';
|
|
8
9
|
import { ofType, Actions, Effect, EffectsModule } from '@ngrx/effects';
|
|
9
10
|
import { __decorate, __metadata } from 'tslib';
|
|
10
|
-
import { of, EMPTY } from 'rxjs';
|
|
11
|
-
import { switchMap, map, catchError, mergeMap, debounceTime, mapTo, tap, switchMapTo } from 'rxjs/operators';
|
|
12
|
-
import { DaffCartAddressDriver, DaffCartBillingAddressDriver, DaffCartCouponDriver, DaffCartItemDriver, DaffCartOrderDriver, DaffCartPaymentMethodsDriver, DaffCartPaymentDriver, DaffCartNotFoundError, DaffCartDriver, DaffCartShippingAddressDriver, DaffCartShippingInformationDriver, DaffCartShippingMethodsDriver } from '@daffodil/cart/driver';
|
|
11
|
+
import { of, combineLatest, EMPTY } from 'rxjs';
|
|
12
|
+
import { switchMap, map, catchError, mergeMap, debounceTime, mapTo, take, tap, switchMapTo } from 'rxjs/operators';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* An enum for the cart action types.
|
|
@@ -19,6 +19,7 @@ var DaffCartActionTypes;
|
|
|
19
19
|
DaffCartActionTypes["CartStorageFailureAction"] = "[DaffCart] Cart Storage Failure Action";
|
|
20
20
|
DaffCartActionTypes["CartLoadAction"] = "[DaffCart] Cart Load Action";
|
|
21
21
|
DaffCartActionTypes["CartLoadSuccessAction"] = "[DaffCart] Cart Load Success Action";
|
|
22
|
+
DaffCartActionTypes["CartLoadPartialSuccessAction"] = "[DaffCart] Cart Load Partial Success Action";
|
|
22
23
|
DaffCartActionTypes["CartLoadFailureAction"] = "[DaffCart] Cart Load Failure Action";
|
|
23
24
|
DaffCartActionTypes["CartCreateAction"] = "[DaffCart] Cart Create Action";
|
|
24
25
|
DaffCartActionTypes["CartCreateSuccessAction"] = "[DaffCart] Cart Create Success Action";
|
|
@@ -31,6 +32,7 @@ var DaffCartActionTypes;
|
|
|
31
32
|
DaffCartActionTypes["CartClearFailureAction"] = "[DaffCart] Cart Reset Failure Action";
|
|
32
33
|
DaffCartActionTypes["ResolveCartAction"] = "[DaffCart] Resolve Cart Action";
|
|
33
34
|
DaffCartActionTypes["ResolveCartSuccessAction"] = "[DaffCart] Resolve Cart Success Action";
|
|
35
|
+
DaffCartActionTypes["ResolveCartPartialSuccessAction"] = "[DaffCart] Resolve Cart Partial Success Action";
|
|
34
36
|
DaffCartActionTypes["ResolveCartServerSideAction"] = "[DaffCart] Resolve Cart Server Side Action";
|
|
35
37
|
DaffCartActionTypes["ResolveCartFailureAction"] = "[DaffCart] Resolve Cart Failure Action";
|
|
36
38
|
})(DaffCartActionTypes || (DaffCartActionTypes = {}));
|
|
@@ -60,6 +62,19 @@ class DaffCartLoadSuccess {
|
|
|
60
62
|
this.type = DaffCartActionTypes.CartLoadSuccessAction;
|
|
61
63
|
}
|
|
62
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* An action that indicates a user's cart is loaded but recoverable errors occurred.
|
|
67
|
+
* There should be enough data to render the cart
|
|
68
|
+
* but the user should probably be shown error messages as well.
|
|
69
|
+
* A common example is some cart items being out of stock.
|
|
70
|
+
*/
|
|
71
|
+
class DaffCartLoadPartialSuccess {
|
|
72
|
+
constructor(payload, errors) {
|
|
73
|
+
this.payload = payload;
|
|
74
|
+
this.errors = errors;
|
|
75
|
+
this.type = DaffCartActionTypes.CartLoadPartialSuccessAction;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
63
78
|
/**
|
|
64
79
|
* Indicates the failed load of the cart.
|
|
65
80
|
*/
|
|
@@ -160,6 +175,19 @@ class DaffResolveCartSuccess {
|
|
|
160
175
|
this.type = DaffCartActionTypes.ResolveCartSuccessAction;
|
|
161
176
|
}
|
|
162
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* An action that indicates a user's cart is resolved but recoverable errors occurred.
|
|
180
|
+
* There should be enough data to render the cart
|
|
181
|
+
* but the user should probably be shown error messages as well.
|
|
182
|
+
* A common example is some cart items being out of stock.
|
|
183
|
+
*/
|
|
184
|
+
class DaffResolveCartPartialSuccess {
|
|
185
|
+
constructor(payload, errors) {
|
|
186
|
+
this.payload = payload;
|
|
187
|
+
this.errors = errors;
|
|
188
|
+
this.type = DaffCartActionTypes.ResolveCartPartialSuccessAction;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
163
191
|
/**
|
|
164
192
|
* An action that indicates that a cart failed to resolve.
|
|
165
193
|
*/
|
|
@@ -200,6 +228,9 @@ var DaffCartItemActionTypes;
|
|
|
200
228
|
DaffCartItemActionTypes["CartItemDeleteAction"] = "[DaffCart] Cart Item Remove Action";
|
|
201
229
|
DaffCartItemActionTypes["CartItemDeleteSuccessAction"] = "[DaffCart] Cart Item Remove Success Action";
|
|
202
230
|
DaffCartItemActionTypes["CartItemDeleteFailureAction"] = "[DaffCart] Cart Item Remove Failure Action";
|
|
231
|
+
DaffCartItemActionTypes["CartItemDeleteOutOfStockAction"] = "[DaffCart] Cart Item Delete Out Of Stock Action";
|
|
232
|
+
DaffCartItemActionTypes["CartItemDeleteOutOfStockSuccessAction"] = "[DaffCart] Cart Item Delete Out Of Stock Success Action";
|
|
233
|
+
DaffCartItemActionTypes["CartItemDeleteOutOfStockFailureAction"] = "[DaffCart] Cart Item Delete Out Of Stock Failure Action";
|
|
203
234
|
DaffCartItemActionTypes["CartItemStateResetAction"] = "[DaffCart] Cart Item State Reset Action";
|
|
204
235
|
})(DaffCartItemActionTypes || (DaffCartItemActionTypes = {}));
|
|
205
236
|
/**
|
|
@@ -341,6 +372,32 @@ class DaffCartItemDeleteFailure {
|
|
|
341
372
|
this.type = DaffCartItemActionTypes.CartItemDeleteFailureAction;
|
|
342
373
|
}
|
|
343
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Triggers the deletion of all out of stock cart items.
|
|
377
|
+
*/
|
|
378
|
+
class DaffCartItemDeleteOutOfStock {
|
|
379
|
+
constructor() {
|
|
380
|
+
this.type = DaffCartItemActionTypes.CartItemDeleteOutOfStockAction;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Indicates the successful deletion of all out of stock cart items.
|
|
385
|
+
*/
|
|
386
|
+
class DaffCartItemDeleteOutOfStockSuccess {
|
|
387
|
+
constructor(payload) {
|
|
388
|
+
this.payload = payload;
|
|
389
|
+
this.type = DaffCartItemActionTypes.CartItemDeleteOutOfStockSuccessAction;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Indicates the failed deletion of all out of stock cart items.
|
|
394
|
+
*/
|
|
395
|
+
class DaffCartItemDeleteOutOfStockFailure {
|
|
396
|
+
constructor(payload) {
|
|
397
|
+
this.payload = payload;
|
|
398
|
+
this.type = DaffCartItemActionTypes.CartItemDeleteOutOfStockFailureAction;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
344
401
|
/**
|
|
345
402
|
* Resets cart item "new" or "updated" states to default.
|
|
346
403
|
*/
|
|
@@ -1033,8 +1090,11 @@ function daffCartItemEntitiesReducer(state = daffCartItemEntitiesAdapter().getIn
|
|
|
1033
1090
|
case DaffCartItemActionTypes.CartItemUpdateFailureAction:
|
|
1034
1091
|
return adapter.upsertOne(Object.assign(Object.assign({}, state.entities[action.itemId]), { daffState: DaffCartItemStateEnum.Error, errors: ((_b = (_a = state.entities[action.itemId]) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b.concat(action.payload)) || [action.payload] }), state);
|
|
1035
1092
|
case DaffCartItemActionTypes.CartItemDeleteSuccessAction:
|
|
1093
|
+
case DaffCartItemActionTypes.CartItemDeleteOutOfStockSuccessAction:
|
|
1036
1094
|
case DaffCartActionTypes.CartLoadSuccessAction:
|
|
1037
1095
|
case DaffCartActionTypes.ResolveCartSuccessAction:
|
|
1096
|
+
case DaffCartActionTypes.CartLoadPartialSuccessAction:
|
|
1097
|
+
case DaffCartActionTypes.ResolveCartPartialSuccessAction:
|
|
1038
1098
|
case DaffCartActionTypes.CartClearSuccessAction:
|
|
1039
1099
|
return adapter.setAll(action.payload.items.map(item => (Object.assign(Object.assign({}, item), { daffState: getDaffState(state.entities[item.id]) || DaffCartItemStateEnum.Default }))), state);
|
|
1040
1100
|
case DaffCartItemActionTypes.CartItemStateResetAction:
|
|
@@ -1161,8 +1221,8 @@ const initialState = Object.freeze({
|
|
|
1161
1221
|
resolved: DaffCartResolveState.Default,
|
|
1162
1222
|
});
|
|
1163
1223
|
|
|
1164
|
-
const initializeErrorAdder = (errorSpace) => (errors,
|
|
1165
|
-
errors: Object.assign(Object.assign({}, errors), { [errorSpace]: errors[errorSpace].concat(
|
|
1224
|
+
const initializeErrorAdder = (errorSpace) => (errors, ...errorsToAdd) => ({
|
|
1225
|
+
errors: Object.assign(Object.assign({}, errors), { [errorSpace]: errors[errorSpace].concat(errorsToAdd) }),
|
|
1166
1226
|
});
|
|
1167
1227
|
const initializeErrorResetter = (errorSpace) => (errors) => ({
|
|
1168
1228
|
errors: Object.assign(Object.assign({}, errors), { [errorSpace]: [] }),
|
|
@@ -1233,6 +1293,10 @@ function cartItemReducer(state = initialState, action) {
|
|
|
1233
1293
|
case DaffCartItemActionTypes.CartItemListAction:
|
|
1234
1294
|
case DaffCartItemActionTypes.CartItemLoadAction:
|
|
1235
1295
|
return Object.assign(Object.assign({}, state), setLoading$2(state.loading, "Resolving" /* Resolving */));
|
|
1296
|
+
case DaffCartItemActionTypes.CartItemUpdateAction:
|
|
1297
|
+
case DaffCartItemActionTypes.CartItemDeleteAction:
|
|
1298
|
+
case DaffCartItemActionTypes.CartItemDeleteOutOfStockAction:
|
|
1299
|
+
return Object.assign(Object.assign({}, state), setLoading$2(state.loading, "Mutating" /* Mutating */));
|
|
1236
1300
|
case DaffCartItemActionTypes.CartItemAddAction:
|
|
1237
1301
|
return Object.assign(Object.assign({}, state), setLoading$2(state.loading, "Adding" /* Adding */));
|
|
1238
1302
|
case DaffCartItemActionTypes.CartItemListSuccessAction:
|
|
@@ -1245,14 +1309,17 @@ function cartItemReducer(state = initialState, action) {
|
|
|
1245
1309
|
case DaffCartItemActionTypes.CartItemAddSuccessAction:
|
|
1246
1310
|
case DaffCartItemActionTypes.CartItemDeleteSuccessAction:
|
|
1247
1311
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, state), resetErrors$2(state.errors)), { cart: Object.assign(Object.assign({}, state.cart), action.payload) }), setLoading$2(state.loading, "Stable" /* Complete */));
|
|
1312
|
+
case DaffCartItemActionTypes.CartItemDeleteOutOfStockSuccessAction:
|
|
1313
|
+
return Object.assign(Object.assign(Object.assign({}, state), { errors: Object.assign(Object.assign({}, state.errors), { [DaffCartOperationType.Item]: [],
|
|
1314
|
+
// out of stock errors can be in the main cart, remove them here
|
|
1315
|
+
[DaffCartOperationType.Cart]: state.errors[DaffCartOperationType.Cart].filter(({ code }) => code !== DaffCartDriverErrorCodes.PRODUCT_OUT_OF_STOCK) }), cart: Object.assign(Object.assign({}, state.cart), action.payload) }), setLoading$2(state.loading, "Stable" /* Complete */));
|
|
1248
1316
|
case DaffCartItemActionTypes.CartItemListFailureAction:
|
|
1249
1317
|
case DaffCartItemActionTypes.CartItemLoadFailureAction:
|
|
1250
1318
|
case DaffCartItemActionTypes.CartItemUpdateFailureAction:
|
|
1251
1319
|
case DaffCartItemActionTypes.CartItemAddFailureAction:
|
|
1252
1320
|
case DaffCartItemActionTypes.CartItemDeleteFailureAction:
|
|
1321
|
+
case DaffCartItemActionTypes.CartItemDeleteOutOfStockFailureAction:
|
|
1253
1322
|
return Object.assign(Object.assign(Object.assign({}, state), addError$2(state.errors, action.payload)), setLoading$2(state.loading, "Stable" /* Complete */));
|
|
1254
|
-
case DaffCartItemActionTypes.CartItemUpdateFailureAction:
|
|
1255
|
-
return Object.assign(Object.assign({}, state), setLoading$2(state.loading, "Stable" /* Complete */));
|
|
1256
1323
|
default:
|
|
1257
1324
|
return state;
|
|
1258
1325
|
}
|
|
@@ -1408,19 +1475,22 @@ function cartReducer(state = initialState, action) {
|
|
|
1408
1475
|
case DaffCartActionTypes.CartLoadSuccessAction:
|
|
1409
1476
|
case DaffCartActionTypes.CartClearSuccessAction:
|
|
1410
1477
|
case DaffCartActionTypes.AddToCartSuccessAction:
|
|
1411
|
-
case DaffCartActionTypes.CartCreateSuccessAction:
|
|
1412
1478
|
case DaffCartActionTypes.ResolveCartSuccessAction:
|
|
1413
1479
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, state), resetErrors$8(state.errors)), { cart: Object.assign(Object.assign({}, state.cart), action.payload) }), setLoading$8(state.loading, "Stable" /* Complete */));
|
|
1414
1480
|
case DaffCartActionTypes.CartCreateSuccessAction:
|
|
1415
1481
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, state), resetErrors$8(state.errors)), { cart: Object.assign(Object.assign({}, initialState.cart), action.payload) }), setLoading$8(state.loading, "Stable" /* Complete */));
|
|
1416
|
-
case DaffCartActionTypes.CartLoadFailureAction:
|
|
1417
1482
|
case DaffCartActionTypes.CartClearFailureAction:
|
|
1418
1483
|
case DaffCartActionTypes.AddToCartFailureAction:
|
|
1419
1484
|
case DaffCartActionTypes.CartCreateFailureAction:
|
|
1420
1485
|
case DaffCartActionTypes.CartStorageFailureAction:
|
|
1421
|
-
case DaffCartActionTypes.ResolveCartFailureAction:
|
|
1422
1486
|
case DaffCartActionTypes.ResolveCartServerSideAction:
|
|
1423
1487
|
return Object.assign(Object.assign(Object.assign({}, state), addError$8(state.errors, action.payload)), setLoading$8(state.loading, "Stable" /* Complete */));
|
|
1488
|
+
case DaffCartActionTypes.CartLoadFailureAction:
|
|
1489
|
+
case DaffCartActionTypes.ResolveCartFailureAction:
|
|
1490
|
+
return Object.assign(Object.assign(Object.assign({}, state), addError$8(state.errors, ...action.payload)), setLoading$8(state.loading, "Stable" /* Stable */));
|
|
1491
|
+
case DaffCartActionTypes.ResolveCartPartialSuccessAction:
|
|
1492
|
+
case DaffCartActionTypes.CartLoadPartialSuccessAction:
|
|
1493
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, state), { cart: Object.assign(Object.assign({}, state.cart), action.payload) }), addError$8(state.errors, ...action.errors)), setLoading$8(state.loading, "Stable" /* Stable */));
|
|
1424
1494
|
default:
|
|
1425
1495
|
return state;
|
|
1426
1496
|
}
|
|
@@ -1947,12 +2017,13 @@ __decorate([
|
|
|
1947
2017
|
], DaffCartCouponEffects.prototype, "removeAll$", void 0);
|
|
1948
2018
|
|
|
1949
2019
|
class DaffCartItemEffects {
|
|
1950
|
-
constructor(actions$, errorMatcher, driver, storage, cartItemStateDebounceTime) {
|
|
2020
|
+
constructor(actions$, errorMatcher, driver, storage, cartItemStateDebounceTime, store) {
|
|
1951
2021
|
this.actions$ = actions$;
|
|
1952
2022
|
this.errorMatcher = errorMatcher;
|
|
1953
2023
|
this.driver = driver;
|
|
1954
2024
|
this.storage = storage;
|
|
1955
2025
|
this.cartItemStateDebounceTime = cartItemStateDebounceTime;
|
|
2026
|
+
this.store = store;
|
|
1956
2027
|
this.list$ = this.actions$.pipe(ofType(DaffCartItemActionTypes.CartItemListAction), switchMap((action) => this.driver.list(this.storage.getCartId()).pipe(map((resp) => new DaffCartItemListSuccess(resp)), catchError(error => of(new DaffCartItemListFailure(this.errorMatcher(error)))))));
|
|
1957
2028
|
this.get$ = this.actions$.pipe(ofType(DaffCartItemActionTypes.CartItemLoadAction), switchMap((action) => this.driver.get(this.storage.getCartId(), action.itemId).pipe(map((resp) => new DaffCartItemLoadSuccess(resp)), catchError(error => of(new DaffCartItemLoadFailure(this.errorMatcher(error), action.itemId))))));
|
|
1958
2029
|
this.add$ = this.actions$.pipe(ofType(DaffCartItemActionTypes.CartItemAddAction), switchMap((action) => this.driver.add(this.storage.getCartId(), action.input).pipe(map((resp) => new DaffCartItemAddSuccess(resp)), catchError(error => of(new DaffCartItemAddFailure(this.errorMatcher(error)))))));
|
|
@@ -1963,6 +2034,9 @@ class DaffCartItemEffects {
|
|
|
1963
2034
|
// these actions will cause the cart item state reset
|
|
1964
2035
|
DaffCartItemActionTypes.CartItemAddSuccessAction, DaffCartItemActionTypes.CartItemUpdateSuccessAction), mapTo(new DaffCartItemStateReset()));
|
|
1965
2036
|
this.delete$ = this.actions$.pipe(ofType(DaffCartItemActionTypes.CartItemDeleteAction), mergeMap((action) => this.driver.delete(this.storage.getCartId(), action.itemId).pipe(map((resp) => new DaffCartItemDeleteSuccess(resp)), catchError(error => of(new DaffCartItemDeleteFailure(this.errorMatcher(error), action.itemId))))));
|
|
2037
|
+
this.removeOutOfStock$ = this.actions$.pipe(ofType(DaffCartItemActionTypes.CartItemDeleteOutOfStockAction), switchMap((action) => this.store.pipe(select(getDaffCartSelectors().selectOutOfStockCartItems), take(1))), switchMap(items => items.length > 0
|
|
2038
|
+
? combineLatest(items.map(item => this.driver.delete(this.storage.getCartId(), item.id))).pipe(map(partialCarts => Object.assign({}, ...partialCarts)))
|
|
2039
|
+
: this.store.pipe(select(getDaffCartSelectors().selectCartValue), take(1))), map(cart => new DaffCartItemDeleteOutOfStockSuccess(cart)), catchError(error => of(new DaffCartItemDeleteOutOfStockFailure(this.errorMatcher(error)))));
|
|
1966
2040
|
}
|
|
1967
2041
|
}
|
|
1968
2042
|
DaffCartItemEffects.decorators = [
|
|
@@ -1974,7 +2048,8 @@ DaffCartItemEffects.ctorParameters = () => [
|
|
|
1974
2048
|
{ type: undefined, decorators: [{ type: Inject, args: [DAFF_CART_ERROR_MATCHER,] }] },
|
|
1975
2049
|
{ type: undefined, decorators: [{ type: Inject, args: [DaffCartItemDriver,] }] },
|
|
1976
2050
|
{ type: DaffCartStorageService },
|
|
1977
|
-
{ type: Number, decorators: [{ type: Inject, args: [DaffCartItemStateDebounceTime,] }] }
|
|
2051
|
+
{ type: Number, decorators: [{ type: Inject, args: [DaffCartItemStateDebounceTime,] }] },
|
|
2052
|
+
{ type: Store }
|
|
1978
2053
|
];
|
|
1979
2054
|
__decorate([
|
|
1980
2055
|
Effect(),
|
|
@@ -2000,6 +2075,10 @@ __decorate([
|
|
|
2000
2075
|
Effect(),
|
|
2001
2076
|
__metadata("design:type", Object)
|
|
2002
2077
|
], DaffCartItemEffects.prototype, "delete$", void 0);
|
|
2078
|
+
__decorate([
|
|
2079
|
+
Effect(),
|
|
2080
|
+
__metadata("design:type", Object)
|
|
2081
|
+
], DaffCartItemEffects.prototype, "removeOutOfStock$", void 0);
|
|
2003
2082
|
|
|
2004
2083
|
class DaffCartOrderEffects {
|
|
2005
2084
|
constructor(actions$, errorMatcher, driver, storage) {
|
|
@@ -2108,19 +2187,32 @@ class DaffCartResolverEffects {
|
|
|
2108
2187
|
this.errorMatcher = errorMatcher;
|
|
2109
2188
|
this.cartStorage = cartStorage;
|
|
2110
2189
|
this.driver = driver;
|
|
2111
|
-
this.onResolveCart = () => this.actions$.pipe(ofType(DaffCartActionTypes.ResolveCartAction), switchMap(() => of(null).pipe(map(() => this.cartStorage.getCartId()), switchMap(cartId => cartId ? of({ id: cartId }) : this.driver.create()), switchMap(({ id }) => this.driver.get(id)),
|
|
2190
|
+
this.onResolveCart = () => this.actions$.pipe(ofType(DaffCartActionTypes.ResolveCartAction), switchMap(() => of(null).pipe(map(() => this.cartStorage.getCartId()), switchMap(cartId => cartId ? of({ id: cartId }) : this.driver.create()), switchMap(({ id }) => this.driver.get(id)), switchMap(({ response, errors }) => {
|
|
2191
|
+
if (errors.length === 0) {
|
|
2192
|
+
return of(new DaffResolveCartSuccess(response));
|
|
2193
|
+
}
|
|
2194
|
+
const hasOnlyRecoverableErrors = errors.reduce((acc, error) => acc && error.recoverable, true);
|
|
2195
|
+
if (hasOnlyRecoverableErrors) {
|
|
2196
|
+
return of(new DaffResolveCartPartialSuccess(response, errors.map(error => this.errorMatcher(error))));
|
|
2197
|
+
}
|
|
2198
|
+
if (errors.filter(error => error instanceof DaffCartNotFoundError).length > 0) {
|
|
2199
|
+
return this.driver.create().pipe(switchMap(({ id }) => this.driver.get(id)), map(resp => new DaffResolveCartSuccess(resp.response)), catchError((innerError) => of(new DaffResolveCartFailure([this.errorMatcher(new DaffCartNotFoundOrCreatedResolutionError(innerError.message))]))));
|
|
2200
|
+
}
|
|
2201
|
+
// there are no special case errors, DaffResolveCartFailure will suffice
|
|
2202
|
+
// just map the errors
|
|
2203
|
+
return of(new DaffResolveCartFailure(errors.map(error => this.errorMatcher(
|
|
2204
|
+
// I wish there was a better way to check this
|
|
2205
|
+
error instanceof DaffInheritableError || !!error.code
|
|
2206
|
+
? error
|
|
2207
|
+
: new DaffCartResolutionError(error.message)))));
|
|
2208
|
+
}), catchError((error) => {
|
|
2112
2209
|
switch (true) {
|
|
2113
2210
|
case error instanceof DaffServerSideStorageError:
|
|
2114
2211
|
return of(new DaffResolveCartServerSide(this.errorMatcher(new DaffCartServerSideResolutionError(error.message))));
|
|
2115
2212
|
case error instanceof DaffStorageServiceError:
|
|
2116
|
-
return of(new DaffResolveCartFailure(this.errorMatcher(new DaffCartStorageResolutionError(error.message))));
|
|
2117
|
-
case error instanceof DaffCartNotFoundError:
|
|
2118
|
-
return this.driver.create().pipe(switchMap(({ id }) => this.driver.get(id)), map(resp => new DaffResolveCartSuccess(resp)), catchError((innerError) => of(new DaffResolveCartFailure(this.errorMatcher(new DaffCartNotFoundOrCreatedResolutionError(innerError.message))))));
|
|
2119
|
-
// I wish there was a better way to check this
|
|
2120
|
-
case error instanceof DaffInheritableError || !!error.code:
|
|
2121
|
-
return of(new DaffResolveCartFailure(this.errorMatcher(error)));
|
|
2213
|
+
return of(new DaffResolveCartFailure([this.errorMatcher(new DaffCartStorageResolutionError(error.message))]));
|
|
2122
2214
|
default:
|
|
2123
|
-
return of(new DaffResolveCartFailure(this.errorMatcher(new DaffCartResolutionError(error.message))));
|
|
2215
|
+
return of(new DaffResolveCartFailure([this.errorMatcher(new DaffCartResolutionError(error.message))]));
|
|
2124
2216
|
}
|
|
2125
2217
|
}))));
|
|
2126
2218
|
}
|
|
@@ -2240,9 +2332,18 @@ class DaffCartEffects {
|
|
|
2240
2332
|
this.storeId$ = this.actions$.pipe(ofType(DaffCartActionTypes.CartCreateSuccessAction, DaffCartActionTypes.ResolveCartSuccessAction), switchMap((action) => of(null).pipe(tap(() => {
|
|
2241
2333
|
this.storage.setCartId(action.payload.id);
|
|
2242
2334
|
}), switchMapTo(EMPTY), catchError(error => of(new DaffCartStorageFailure(this.errorMatcher(error)))))));
|
|
2243
|
-
this.get$ = this.actions$.pipe(ofType(DaffCartActionTypes.CartLoadAction), switchMap((action) => of(null).pipe(map(() => this.storage.getCartId()), switchMap(cartId => this.driver.get(cartId)), map((
|
|
2335
|
+
this.get$ = this.actions$.pipe(ofType(DaffCartActionTypes.CartLoadAction), switchMap((action) => of(null).pipe(map(() => this.storage.getCartId()), switchMap(cartId => this.driver.get(cartId)), map(({ response, errors }) => {
|
|
2336
|
+
if (errors.length === 0) {
|
|
2337
|
+
return new DaffCartLoadSuccess(response);
|
|
2338
|
+
}
|
|
2339
|
+
const hasOnlyRecoverableErrors = errors.reduce((acc, error) => acc && error.recoverable, true);
|
|
2340
|
+
if (hasOnlyRecoverableErrors) {
|
|
2341
|
+
return new DaffCartLoadPartialSuccess(response, errors.map(error => this.errorMatcher(error)));
|
|
2342
|
+
}
|
|
2343
|
+
return new DaffCartLoadFailure(errors.map(error => this.errorMatcher(error)));
|
|
2344
|
+
}), catchError(error => of(error instanceof DaffStorageServiceError
|
|
2244
2345
|
? new DaffCartStorageFailure(this.errorMatcher(error))
|
|
2245
|
-
: new DaffCartLoadFailure(this.errorMatcher(error)))))));
|
|
2346
|
+
: new DaffCartLoadFailure([this.errorMatcher(error)]))))));
|
|
2246
2347
|
this.addToCart$ = this.actions$.pipe(ofType(DaffCartActionTypes.AddToCartAction), switchMap((action) => this.driver.addToCart(action.payload.productId, action.payload.qty).pipe(map((resp) => new DaffAddToCartSuccess(resp)), catchError(error => of(new DaffAddToCartFailure(this.errorMatcher(error)))))));
|
|
2247
2348
|
this.clear$ = this.actions$.pipe(ofType(DaffCartActionTypes.CartClearAction), switchMap((action) => of(null).pipe(map(() => this.storage.getCartId()), switchMap(cartId => this.driver.clear(cartId)), map((resp) => new DaffCartClearSuccess(resp)), catchError(error => of(error instanceof DaffStorageServiceError
|
|
2248
2349
|
? new DaffCartStorageFailure(this.errorMatcher(error))
|
|
@@ -2331,7 +2432,7 @@ class DaffCartFacade {
|
|
|
2331
2432
|
paymentMethodMap) {
|
|
2332
2433
|
this.store = store;
|
|
2333
2434
|
this.paymentMethodMap = paymentMethodMap;
|
|
2334
|
-
const { selectCartValue, selectCartResolved, selectCartLoadingObject, selectCartFeatureLoading, selectCartFeatureResolving, selectCartFeatureMutating, selectCartLoading, selectCartResolving, selectCartMutating, selectBillingAddressLoading, selectBillingAddressResolving, selectBillingAddressMutating, selectShippingAddressLoading, selectShippingAddressResolving, selectShippingAddressMutating, selectShippingInformationLoading, selectShippingInformationResolving, selectShippingInformationMutating, selectShippingMethodsLoading, selectShippingMethodsResolving, selectPaymentLoading, selectPaymentResolving, selectPaymentMutating, selectPaymentMethodsLoading, selectPaymentMethodsResolving, selectCouponLoading, selectCouponResolving, selectCouponMutating, selectItemLoading, selectItemAdding, selectItemResolving, selectCartItemMutating, selectCartErrorsObject, selectCartErrors, selectItemErrors, selectBillingAddressErrors, selectShippingAddressErrors, selectShippingInformationErrors, selectShippingMethodsErrors, selectPaymentErrors, selectPaymentMethodsErrors, selectCouponErrors, selectCartId, selectCartSubtotal, selectCartGrandTotal, selectCartSubtotalExcludingTax, selectCartSubtotalIncludingTax, selectCartSubtotalWithDiscountExcludingTax, selectCartSubtotalWithDiscountIncludingTax, selectCartDiscountTotals, selectCartTotalTax, selectCartShippingTotal, selectCartCoupons, selectCartItems, selectCartHasOutOfStockItems, selectOutOfStockCartItems, selectInStockCartItems, selectCartItemEntities, selectTotalNumberOfCartItems, selectCartItemConfiguredAttributes, selectCartItemCompositeOptions, selectCartBillingAddress, selectCartShippingAddress, selectCartPayment, selectCartTotals, selectCartShippingInformation, selectCartAvailableShippingMethods, selectCartAvailablePaymentMethods, selectIsCartEmpty, selectIsBillingSameAsShipping, selectCartOrderLoading, selectCartOrderErrors, selectCartOrderValue, selectCartOrderId, selectCartOrderCartId, selectHasOrderResult, selectIsCartItemOutOfStock, selectCartItemState, selectHasBillingAddress, selectHasShippingAddress, selectHasShippingMethod, selectHasPaymentMethod, selectCanPlaceOrder, selectCartItemPrice, selectCartItemRowTotal, selectCartItemQuantity, selectCartItemDiscounts, selectCartItemTotalDiscount, selectCartItemErrors, } = getDaffCartSelectors();
|
|
2435
|
+
const { selectCartValue, selectCartResolved, selectCartLoadingObject, selectCartFeatureLoading, selectCartFeatureResolving, selectCartFeatureMutating, selectCartLoading, selectCartResolving, selectCartMutating, selectBillingAddressLoading, selectBillingAddressResolving, selectBillingAddressMutating, selectShippingAddressLoading, selectShippingAddressResolving, selectShippingAddressMutating, selectShippingInformationLoading, selectShippingInformationResolving, selectShippingInformationMutating, selectShippingMethodsLoading, selectShippingMethodsResolving, selectPaymentLoading, selectPaymentResolving, selectPaymentMutating, selectPaymentMethodsLoading, selectPaymentMethodsResolving, selectCouponLoading, selectCouponResolving, selectCouponMutating, selectItemLoading, selectItemAdding, selectItemResolving, selectCartItemMutating, selectCartErrorsObject, selectCartErrors, selectItemErrors, selectBillingAddressErrors, selectShippingAddressErrors, selectShippingInformationErrors, selectShippingMethodsErrors, selectPaymentErrors, selectPaymentMethodsErrors, selectCouponErrors, selectCartId, selectCartSubtotal, selectCartGrandTotal, selectCartSubtotalExcludingTax, selectCartSubtotalIncludingTax, selectCartSubtotalWithDiscountExcludingTax, selectCartSubtotalWithDiscountIncludingTax, selectCartDiscountTotals, selectCartTotalTax, selectCartShippingTotal, selectCartCoupons, selectCartItems, selectAllCartItems, selectCartHasOutOfStockItems, selectOutOfStockCartItems, selectInStockCartItems, selectCartItemEntities, selectTotalNumberOfCartItems, selectCartItemConfiguredAttributes, selectCartItemCompositeOptions, selectCartBillingAddress, selectCartShippingAddress, selectCartPayment, selectCartTotals, selectCartShippingInformation, selectCartAvailableShippingMethods, selectCartAvailablePaymentMethods, selectIsCartEmpty, selectIsBillingSameAsShipping, selectCartOrderLoading, selectCartOrderErrors, selectCartOrderValue, selectCartOrderId, selectCartOrderCartId, selectHasOrderResult, selectIsCartItemOutOfStock, selectCartItemState, selectHasBillingAddress, selectHasShippingAddress, selectHasShippingMethod, selectHasPaymentMethod, selectCanPlaceOrder, selectCartItemPrice, selectCartItemRowTotal, selectCartItemQuantity, selectCartItemDiscounts, selectCartItemTotalDiscount, selectCartItemErrors, } = getDaffCartSelectors();
|
|
2335
2436
|
this._selectCartItemConfiguredAttributes = selectCartItemConfiguredAttributes;
|
|
2336
2437
|
this._selectCartItemCompositeOptions = selectCartItemCompositeOptions;
|
|
2337
2438
|
this._selectIsCartItemOutOfStock = selectIsCartItemOutOfStock;
|
|
@@ -2396,6 +2497,7 @@ class DaffCartFacade {
|
|
|
2396
2497
|
this.shippingTotal$ = this.store.pipe(select(selectCartShippingTotal));
|
|
2397
2498
|
this.coupons$ = this.store.pipe(select(selectCartCoupons));
|
|
2398
2499
|
this.items$ = this.store.pipe(select(selectCartItems));
|
|
2500
|
+
this.itemEntities$ = this.store.pipe(select(selectAllCartItems));
|
|
2399
2501
|
this.totalItems$ = this.store.pipe(select(selectTotalNumberOfCartItems));
|
|
2400
2502
|
this.hasOutOfStockItems$ = this.store.pipe(select(selectCartHasOutOfStockItems));
|
|
2401
2503
|
this.outOfStockItems$ = this.store.pipe(select(selectOutOfStockCartItems));
|
|
@@ -2478,5 +2580,5 @@ DaffCartFacade.ctorParameters = () => [
|
|
|
2478
2580
|
* Generated bundle index. Do not edit.
|
|
2479
2581
|
*/
|
|
2480
2582
|
|
|
2481
|
-
export { DAFF_CART_EXTRA_REDUCERS, DAFF_CART_STORE_FEATURE_KEY, DaffAddToCart, DaffAddToCartFailure, DaffAddToCartSuccess, DaffCartActionTypes, DaffCartAddressActionTypes, DaffCartAddressUpdate, DaffCartAddressUpdateFailure, DaffCartAddressUpdateSuccess, DaffCartBillingAddressActionTypes, DaffCartBillingAddressLoad, DaffCartBillingAddressLoadFailure, DaffCartBillingAddressLoadSuccess, DaffCartBillingAddressUpdate, DaffCartBillingAddressUpdateFailure, DaffCartBillingAddressUpdateSuccess, DaffCartClear, DaffCartClearFailure, DaffCartClearSuccess, DaffCartCouponActionTypes, DaffCartCouponApply, DaffCartCouponApplyFailure, DaffCartCouponApplySuccess, DaffCartCouponClearErrors, DaffCartCouponList, DaffCartCouponListFailure, DaffCartCouponListSuccess, DaffCartCouponRemove, DaffCartCouponRemoveAll, DaffCartCouponRemoveAllFailure, DaffCartCouponRemoveAllSuccess, DaffCartCouponRemoveFailure, DaffCartCouponRemoveSuccess, DaffCartCreate, DaffCartCreateFailure, DaffCartCreateSuccess, DaffCartFacade, DaffCartItemActionTypes, DaffCartItemAdd, DaffCartItemAddFailure, DaffCartItemAddSuccess, DaffCartItemDelete, DaffCartItemDeleteFailure, DaffCartItemDeleteSuccess, DaffCartItemList, DaffCartItemListFailure, DaffCartItemListSuccess, DaffCartItemLoad, DaffCartItemLoadFailure, DaffCartItemLoadSuccess, DaffCartItemStateDebounceTime, DaffCartItemStateEnum, DaffCartItemStateReset, DaffCartItemUpdate, DaffCartItemUpdateFailure, DaffCartItemUpdateSuccess, DaffCartLoad, DaffCartLoadFailure, DaffCartLoadSuccess, DaffCartOperationType, DaffCartOrderActionTypes, DaffCartPaymentActionTypes, DaffCartPaymentLoad, DaffCartPaymentLoadFailure, DaffCartPaymentLoadSuccess, DaffCartPaymentMethodAdd, DaffCartPaymentMethodsActionTypes, DaffCartPaymentMethodsLoad, DaffCartPaymentMethodsLoadFailure, DaffCartPaymentMethodsLoadSuccess, DaffCartPaymentRemove, DaffCartPaymentRemoveFailure, DaffCartPaymentRemoveSuccess, DaffCartPaymentUpdate, DaffCartPaymentUpdateFailure, DaffCartPaymentUpdateSuccess, DaffCartPaymentUpdateWithBilling, DaffCartPaymentUpdateWithBillingFailure, DaffCartPaymentUpdateWithBillingSuccess, DaffCartPlaceOrder, DaffCartPlaceOrderFailure, DaffCartPlaceOrderSuccess, DaffCartResolveState, DaffCartShippingAddressActionTypes, DaffCartShippingAddressLoad, DaffCartShippingAddressLoadFailure, DaffCartShippingAddressLoadSuccess, DaffCartShippingAddressUpdate, DaffCartShippingAddressUpdateFailure, DaffCartShippingAddressUpdateSuccess, DaffCartShippingInformationActionTypes, DaffCartShippingInformationDelete, DaffCartShippingInformationDeleteFailure, DaffCartShippingInformationDeleteSuccess, DaffCartShippingInformationLoad, DaffCartShippingInformationLoadFailure, DaffCartShippingInformationLoadSuccess, DaffCartShippingInformationUpdate, DaffCartShippingInformationUpdateFailure, DaffCartShippingInformationUpdateSuccess, DaffCartShippingMethodsActionTypes, DaffCartShippingMethodsLoad, DaffCartShippingMethodsLoadFailure, DaffCartShippingMethodsLoadSuccess, DaffCartStateModule, DaffCartStorageFailure, DaffResolveCart, DaffResolveCartFailure, DaffResolveCartServerSide, DaffResolveCartSuccess, daffCartOrderInitialState, daffCartOrderReducer, daffCartProvideExtraReducers, daffCartReducer, daffCartReducers, getDaffCartSelectors, initialState, initializeLoadingSetter, ɵ0$5 as ɵ0, ɵ1$3 as ɵ1, cartReducer as ɵa, cartItemReducer as ɵb, cartBillingAddressReducer as ɵc, cartShippingAddressReducer as ɵd, cartShippingMethodsReducer as ɵe, cartShippingInformationReducer as ɵf, cartPaymentReducer as ɵg, cartPaymentMethodsReducer as ɵh, cartCouponReducer as ɵi, cartResolveReducer as ɵj, daffCartItemEntitiesReducer as ɵk, DAFF_CART_REDUCERS as ɵl, DaffCartEffects as ɵm, DaffCartItemEffects as ɵn, DaffCartBillingAddressEffects as ɵo, DaffCartShippingAddressEffects as ɵp, DaffCartAddressEffects as ɵq, DaffCartShippingInformationEffects as ɵr, DaffCartShippingMethodsEffects as ɵs, DaffCartPaymentEffects as ɵt, DaffCartPaymentMethodsEffects as ɵu, DaffCartOrderEffects as ɵv, DaffCartCouponEffects as ɵw, DaffCartResolverEffects as ɵx };
|
|
2583
|
+
export { DAFF_CART_EXTRA_REDUCERS, DAFF_CART_STORE_FEATURE_KEY, DaffAddToCart, DaffAddToCartFailure, DaffAddToCartSuccess, DaffCartActionTypes, DaffCartAddressActionTypes, DaffCartAddressUpdate, DaffCartAddressUpdateFailure, DaffCartAddressUpdateSuccess, DaffCartBillingAddressActionTypes, DaffCartBillingAddressLoad, DaffCartBillingAddressLoadFailure, DaffCartBillingAddressLoadSuccess, DaffCartBillingAddressUpdate, DaffCartBillingAddressUpdateFailure, DaffCartBillingAddressUpdateSuccess, DaffCartClear, DaffCartClearFailure, DaffCartClearSuccess, DaffCartCouponActionTypes, DaffCartCouponApply, DaffCartCouponApplyFailure, DaffCartCouponApplySuccess, DaffCartCouponClearErrors, DaffCartCouponList, DaffCartCouponListFailure, DaffCartCouponListSuccess, DaffCartCouponRemove, DaffCartCouponRemoveAll, DaffCartCouponRemoveAllFailure, DaffCartCouponRemoveAllSuccess, DaffCartCouponRemoveFailure, DaffCartCouponRemoveSuccess, DaffCartCreate, DaffCartCreateFailure, DaffCartCreateSuccess, DaffCartFacade, DaffCartItemActionTypes, DaffCartItemAdd, DaffCartItemAddFailure, DaffCartItemAddSuccess, DaffCartItemDelete, DaffCartItemDeleteFailure, DaffCartItemDeleteOutOfStock, DaffCartItemDeleteOutOfStockFailure, DaffCartItemDeleteOutOfStockSuccess, DaffCartItemDeleteSuccess, DaffCartItemList, DaffCartItemListFailure, DaffCartItemListSuccess, DaffCartItemLoad, DaffCartItemLoadFailure, DaffCartItemLoadSuccess, DaffCartItemStateDebounceTime, DaffCartItemStateEnum, DaffCartItemStateReset, DaffCartItemUpdate, DaffCartItemUpdateFailure, DaffCartItemUpdateSuccess, DaffCartLoad, DaffCartLoadFailure, DaffCartLoadPartialSuccess, DaffCartLoadSuccess, DaffCartOperationType, DaffCartOrderActionTypes, DaffCartPaymentActionTypes, DaffCartPaymentLoad, DaffCartPaymentLoadFailure, DaffCartPaymentLoadSuccess, DaffCartPaymentMethodAdd, DaffCartPaymentMethodsActionTypes, DaffCartPaymentMethodsLoad, DaffCartPaymentMethodsLoadFailure, DaffCartPaymentMethodsLoadSuccess, DaffCartPaymentRemove, DaffCartPaymentRemoveFailure, DaffCartPaymentRemoveSuccess, DaffCartPaymentUpdate, DaffCartPaymentUpdateFailure, DaffCartPaymentUpdateSuccess, DaffCartPaymentUpdateWithBilling, DaffCartPaymentUpdateWithBillingFailure, DaffCartPaymentUpdateWithBillingSuccess, DaffCartPlaceOrder, DaffCartPlaceOrderFailure, DaffCartPlaceOrderSuccess, DaffCartResolveState, DaffCartShippingAddressActionTypes, DaffCartShippingAddressLoad, DaffCartShippingAddressLoadFailure, DaffCartShippingAddressLoadSuccess, DaffCartShippingAddressUpdate, DaffCartShippingAddressUpdateFailure, DaffCartShippingAddressUpdateSuccess, DaffCartShippingInformationActionTypes, DaffCartShippingInformationDelete, DaffCartShippingInformationDeleteFailure, DaffCartShippingInformationDeleteSuccess, DaffCartShippingInformationLoad, DaffCartShippingInformationLoadFailure, DaffCartShippingInformationLoadSuccess, DaffCartShippingInformationUpdate, DaffCartShippingInformationUpdateFailure, DaffCartShippingInformationUpdateSuccess, DaffCartShippingMethodsActionTypes, DaffCartShippingMethodsLoad, DaffCartShippingMethodsLoadFailure, DaffCartShippingMethodsLoadSuccess, DaffCartStateModule, DaffCartStorageFailure, DaffResolveCart, DaffResolveCartFailure, DaffResolveCartPartialSuccess, DaffResolveCartServerSide, DaffResolveCartSuccess, daffCartOrderInitialState, daffCartOrderReducer, daffCartProvideExtraReducers, daffCartReducer, daffCartReducers, getDaffCartSelectors, initialState, initializeLoadingSetter, ɵ0$5 as ɵ0, ɵ1$3 as ɵ1, cartReducer as ɵa, cartItemReducer as ɵb, cartBillingAddressReducer as ɵc, cartShippingAddressReducer as ɵd, cartShippingMethodsReducer as ɵe, cartShippingInformationReducer as ɵf, cartPaymentReducer as ɵg, cartPaymentMethodsReducer as ɵh, cartCouponReducer as ɵi, cartResolveReducer as ɵj, daffCartItemEntitiesReducer as ɵk, DAFF_CART_REDUCERS as ɵl, DaffCartEffects as ɵm, DaffCartItemEffects as ɵn, DaffCartBillingAddressEffects as ɵo, DaffCartShippingAddressEffects as ɵp, DaffCartAddressEffects as ɵq, DaffCartShippingInformationEffects as ɵr, DaffCartShippingMethodsEffects as ɵs, DaffCartPaymentEffects as ɵt, DaffCartPaymentMethodsEffects as ɵu, DaffCartOrderEffects as ɵv, DaffCartCouponEffects as ɵw, DaffCartResolverEffects as ɵx };
|
|
2482
2584
|
//# sourceMappingURL=daffodil-cart-state.js.map
|