@daffodil/cart 0.70.0 → 0.71.0
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/esm2022/driver/in-memory/backend/cart/cart.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-address/cart-address.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-billing-address/cart-billing-address.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-coupon/cart-coupon.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-items/cart-items.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-order/cart-order.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-payment/cart-payment.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-payment-methods/cart-payment-methods.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-root.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-shipping-address/cart-shipping-address.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.mjs +4 -4
- package/esm2022/driver/in-memory/backend/cart-shipping-methods/cart-shipping-methods.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart/cart.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-address/cart-address.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-billing-address/cart-billing-address.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-coupon/cart-coupon.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-driver.module.mjs +5 -5
- package/esm2022/driver/in-memory/drivers/cart-item/cart-item.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-order/cart-order.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-payment/cart-payment.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-payment-methods/cart-payment-methods.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-shipping-address/cart-shipping-address.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +4 -4
- package/esm2022/driver/magento/cart-address.service.mjs +4 -4
- package/esm2022/driver/magento/cart-billing-address.service.mjs +4 -4
- package/esm2022/driver/magento/cart-coupon.service.mjs +4 -4
- package/esm2022/driver/magento/cart-driver.module.mjs +5 -5
- package/esm2022/driver/magento/cart-item.service.mjs +4 -4
- package/esm2022/driver/magento/cart-order.service.mjs +4 -4
- package/esm2022/driver/magento/cart-payment-methods.service.mjs +4 -4
- package/esm2022/driver/magento/cart-payment.service.mjs +4 -4
- package/esm2022/driver/magento/cart-shipping-address.service.mjs +4 -4
- package/esm2022/driver/magento/cart-shipping-information.service.mjs +4 -4
- package/esm2022/driver/magento/cart-shipping-methods.service.mjs +4 -4
- package/esm2022/driver/magento/cart.service.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-address-input.factory.mjs +7 -7
- package/esm2022/driver/magento/testing/factories/cart-address.factory.mjs +8 -8
- package/esm2022/driver/magento/testing/factories/cart-coupon.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-item/bundle-cart-item.factory.mjs +6 -6
- package/esm2022/driver/magento/testing/factories/cart-item/cart-item.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-item/configurable-cart-item.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-payment-method.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart-shipping-method.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/cart.factory.mjs +4 -4
- package/esm2022/driver/magento/testing/factories/shipping-address.factory.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/billing-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/cart-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/cart-item-update.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/payment-method.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/shipping-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/inputs/shipping-method.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/billing-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart-address.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart-coupon-response.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart-payment.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart-shipping-rate.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/cart.service.mjs +4 -4
- package/esm2022/driver/magento/transforms/outputs/shipping-address.service.mjs +4 -4
- package/esm2022/driver/services/resolve.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart/cart.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-address/cart-address.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-billing-address/cart-billing-address.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-coupon/cart-coupon.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-driver.module.mjs +5 -5
- package/esm2022/driver/testing/drivers/cart-item/cart-item.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-order/cart-order.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-payment/cart-payment.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-payment-methods/cart-payment-methods.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-shipping-address/cart-shipping-address.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-shipping-information/cart-shipping-information.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +4 -4
- package/esm2022/routing/cart-routing.module.mjs +5 -5
- package/esm2022/routing/guards/billing-address/billing-address.guard.mjs +4 -4
- package/esm2022/routing/guards/cart-items/cart-items.guard.mjs +4 -4
- package/esm2022/routing/guards/in-stock-items/in-stock-items.guard.mjs +4 -4
- package/esm2022/routing/guards/order-result/order-result.guard.mjs +4 -4
- package/esm2022/routing/guards/payment-method/payment-method.guard.mjs +4 -4
- package/esm2022/routing/guards/resolve-cart/resolve-cart.guard.mjs +4 -4
- package/esm2022/routing/guards/resolved-cart/resolved-cart.guard.mjs +4 -4
- package/esm2022/routing/guards/shipping-address/shipping-address.guard.mjs +4 -4
- package/esm2022/routing/guards/shipping-method/shipping-method.guard.mjs +4 -4
- package/esm2022/routing/resolvers/cart-resolver.service.mjs +4 -4
- package/esm2022/routing/resolvers/empty-cart-resolver.service.mjs +4 -4
- package/esm2022/state/cart-state.module.mjs +5 -5
- package/esm2022/state/effects/cart-address.effects.mjs +4 -4
- package/esm2022/state/effects/cart-billing-address.effects.mjs +4 -4
- package/esm2022/state/effects/cart-coupon.effects.mjs +4 -4
- package/esm2022/state/effects/cart-item.effects.mjs +4 -4
- package/esm2022/state/effects/cart-order.effects.mjs +4 -4
- package/esm2022/state/effects/cart-payment-methods.effects.mjs +4 -4
- package/esm2022/state/effects/cart-payment-processor.effects.mjs +4 -4
- package/esm2022/state/effects/cart-payment.effects.mjs +4 -4
- package/esm2022/state/effects/cart-resolver.effects.mjs +4 -4
- package/esm2022/state/effects/cart-shipping-address.effects.mjs +4 -4
- package/esm2022/state/effects/cart-shipping-information.effects.mjs +4 -4
- package/esm2022/state/effects/cart-shipping-methods.effects.mjs +4 -4
- package/esm2022/state/effects/cart.effects.mjs +4 -4
- package/esm2022/state/facades/cart/cart.facade.mjs +4 -4
- package/esm2022/state/testing/cart-testing.module.mjs +5 -5
- package/esm2022/state/testing/factories/stateful-cart-item.factory.mjs +4 -4
- package/esm2022/state/testing/factories/stateful-composite-cart-item.factory.mjs +4 -4
- package/esm2022/state/testing/factories/stateful-configurable-cart-item.factory.mjs +4 -4
- package/esm2022/state/testing/mock-cart-facade.mjs +4 -4
- package/esm2022/storage/cart-storage.service.mjs +4 -4
- package/esm2022/testing/factories/cart-address.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-coupon.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-item/cart-item.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-item/composite-cart-item.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-item/configurable-cart-item.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-payment.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-shipping-rate.factory.mjs +4 -4
- package/esm2022/testing/factories/cart-total.factory.mjs +4 -4
- package/esm2022/testing/factories/cart.factory.mjs +4 -4
- package/fesm2022/daffodil-cart-driver-in-memory.mjs +73 -73
- package/fesm2022/daffodil-cart-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs +39 -39
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento.mjs +76 -76
- package/fesm2022/daffodil-cart-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-testing.mjs +37 -37
- package/fesm2022/daffodil-cart-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver.mjs +3 -3
- package/fesm2022/daffodil-cart-driver.mjs.map +1 -1
- package/fesm2022/daffodil-cart-routing.mjs +37 -37
- package/fesm2022/daffodil-cart-routing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state-testing.mjs +16 -16
- package/fesm2022/daffodil-cart-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state.mjs +46 -46
- package/fesm2022/daffodil-cart-state.mjs.map +1 -1
- package/fesm2022/daffodil-cart-testing.mjs +27 -27
- package/fesm2022/daffodil-cart-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart.mjs +3 -3
- package/fesm2022/daffodil-cart.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1198,10 +1198,10 @@ class DaffCartPaymentProcessorEffects {
|
|
|
1198
1198
|
updateFailure: (errors) => of(new DaffCartPaymentUpdateFailure(errors.map(this.errorMatcher))),
|
|
1199
1199
|
}))));
|
|
1200
1200
|
}
|
|
1201
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
1202
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
1201
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartPaymentProcessorEffects, deps: [{ token: i1.Actions }, { token: DAFF_PAYMENT_PROCESSOR_COLLECTION }, { token: DAFF_CART_ERROR_MATCHER }, { token: DAFF_PAYMENT_ERROR_MATCHER }, { token: DaffCartPaymentDriver }, { token: i3.DaffCartDriverResolveService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1202
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartPaymentProcessorEffects }); }
|
|
1203
1203
|
}
|
|
1204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
1204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartPaymentProcessorEffects, decorators: [{
|
|
1205
1205
|
type: Injectable
|
|
1206
1206
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
1207
1207
|
type: Inject,
|
|
@@ -2306,10 +2306,10 @@ class DaffCartAddressEffects {
|
|
|
2306
2306
|
? new DaffCartStorageFailure(error.map(this.errorMatcher))
|
|
2307
2307
|
: new DaffCartAddressUpdateFailure(error.map(this.errorMatcher))))))));
|
|
2308
2308
|
}
|
|
2309
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2310
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2309
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartAddressEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartAddressDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2310
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartAddressEffects }); }
|
|
2311
2311
|
}
|
|
2312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartAddressEffects, decorators: [{
|
|
2313
2313
|
type: Injectable
|
|
2314
2314
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2315
2315
|
type: Inject,
|
|
@@ -2328,10 +2328,10 @@ class DaffCartBillingAddressEffects {
|
|
|
2328
2328
|
this.get$ = createEffect(() => this.actions$.pipe(ofType(DaffCartBillingAddressActionTypes.CartBillingAddressLoadAction), switchMap((action) => this.driver.get(this.storage.getCartId()).pipe(map((resp) => new DaffCartBillingAddressLoadSuccess(resp)), catchAndArrayifyErrors(error => of(new DaffCartBillingAddressLoadFailure(error.map(this.errorMatcher))))))));
|
|
2329
2329
|
this.update$ = createEffect(() => this.actions$.pipe(ofType(DaffCartBillingAddressActionTypes.CartBillingAddressUpdateAction), switchMap((action) => this.driver.update(this.storage.getCartId(), action.payload).pipe(map((resp) => new DaffCartBillingAddressUpdateSuccess(resp)), catchAndArrayifyErrors(error => of(new DaffCartBillingAddressUpdateFailure(error.map(this.errorMatcher))))))));
|
|
2330
2330
|
}
|
|
2331
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2332
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2331
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartBillingAddressEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartBillingAddressDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2332
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartBillingAddressEffects }); }
|
|
2333
2333
|
}
|
|
2334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartBillingAddressEffects, decorators: [{
|
|
2335
2335
|
type: Injectable
|
|
2336
2336
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2337
2337
|
type: Inject,
|
|
@@ -2360,10 +2360,10 @@ class DaffCartCouponEffects {
|
|
|
2360
2360
|
? new DaffCartStorageFailure(error.map(this.errorMatcher))
|
|
2361
2361
|
: new DaffCartCouponRemoveAllFailure(error.map(this.errorMatcher))))))));
|
|
2362
2362
|
}
|
|
2363
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2364
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2363
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartCouponEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartCouponDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2364
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartCouponEffects }); }
|
|
2365
2365
|
}
|
|
2366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartCouponEffects, decorators: [{
|
|
2367
2367
|
type: Injectable
|
|
2368
2368
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2369
2369
|
type: Inject,
|
|
@@ -2467,10 +2467,10 @@ class DaffCartFacade {
|
|
|
2467
2467
|
dispatch(action) {
|
|
2468
2468
|
this.store.dispatch(action);
|
|
2469
2469
|
}
|
|
2470
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2471
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2470
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartFacade, deps: [{ token: i1$1.Store }, { token: DaffCartPaymentMethodIdMap }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2471
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartFacade, providedIn: 'root' }); }
|
|
2472
2472
|
}
|
|
2473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartFacade, decorators: [{
|
|
2474
2474
|
type: Injectable,
|
|
2475
2475
|
args: [{
|
|
2476
2476
|
providedIn: 'root',
|
|
@@ -2509,10 +2509,10 @@ class DaffCartItemEffects {
|
|
|
2509
2509
|
? combineLatest(items.map(item => this.driver.delete(this.storage.getCartId(), item.id))).pipe(map(partialCarts => Object.assign({}, ...partialCarts)))
|
|
2510
2510
|
: this.cartFacade.cart$.pipe(take(1))), map((cart) => new DaffCartItemDeleteOutOfStockSuccess(cart)), catchAndArrayifyErrors(error => of(new DaffCartItemDeleteOutOfStockFailure(error.map(this.errorMatcher))))));
|
|
2511
2511
|
}
|
|
2512
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2513
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2512
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartItemEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartItemDriver }, { token: i2.DaffCartStorageService }, { token: DaffCartItemStateDebounceTime }, { token: i3.DaffCartDriverResolveService }, { token: DaffCartFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2513
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartItemEffects }); }
|
|
2514
2514
|
}
|
|
2515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartItemEffects, decorators: [{
|
|
2516
2516
|
type: Injectable
|
|
2517
2517
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2518
2518
|
type: Inject,
|
|
@@ -2536,10 +2536,10 @@ class DaffCartOrderEffects {
|
|
|
2536
2536
|
: new DaffCartPlaceOrderFailure(error.map(this.errorMatcher))))))));
|
|
2537
2537
|
this.resetCart$ = createEffect(() => this.actions$.pipe(ofType(DaffCartOrderActionTypes.CartPlaceOrderSuccessAction), map(() => new DaffCartCreate())));
|
|
2538
2538
|
}
|
|
2539
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2540
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2539
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartOrderEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartOrderDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2540
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartOrderEffects }); }
|
|
2541
2541
|
}
|
|
2542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartOrderEffects, decorators: [{
|
|
2543
2543
|
type: Injectable
|
|
2544
2544
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2545
2545
|
type: Inject,
|
|
@@ -2557,10 +2557,10 @@ class DaffCartPaymentMethodsEffects {
|
|
|
2557
2557
|
this.storage = storage;
|
|
2558
2558
|
this.list$ = createEffect(() => this.actions$.pipe(ofType(DaffCartPaymentMethodsActionTypes.CartPaymentMethodsLoadAction), switchMap((action) => this.driver.list(this.storage.getCartId()).pipe(map((resp) => new DaffCartPaymentMethodsLoadSuccess(resp)), catchAndArrayifyErrors(error => of(new DaffCartPaymentMethodsLoadFailure(error.map(this.errorMatcher))))))));
|
|
2559
2559
|
}
|
|
2560
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2561
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2560
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartPaymentMethodsEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartPaymentMethodsDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2561
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartPaymentMethodsEffects }); }
|
|
2562
2562
|
}
|
|
2563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartPaymentMethodsEffects, decorators: [{
|
|
2564
2564
|
type: Injectable
|
|
2565
2565
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2566
2566
|
type: Inject,
|
|
@@ -2581,10 +2581,10 @@ class DaffCartPaymentEffects {
|
|
|
2581
2581
|
this.updateWithBilling$ = createEffect(() => this.actions$.pipe(ofType(DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingAction), switchMap((action) => this.driver.update(this.storage.getCartId(), action.payment, action.address).pipe(map(resp => new DaffCartPaymentUpdateWithBillingSuccess(resp)), catchAndArrayifyErrors(error => of(new DaffCartPaymentUpdateWithBillingFailure(error.map(this.errorMatcher))))))));
|
|
2582
2582
|
this.remove$ = createEffect(() => this.actions$.pipe(ofType(DaffCartPaymentActionTypes.CartPaymentRemoveAction), switchMap((action) => this.driver.remove(this.storage.getCartId()).pipe(map(() => new DaffCartPaymentRemoveSuccess()), catchAndArrayifyErrors(error => of(new DaffCartPaymentRemoveFailure(error.map(this.errorMatcher))))))));
|
|
2583
2583
|
}
|
|
2584
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2585
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2584
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartPaymentEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartPaymentDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2585
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartPaymentEffects }); }
|
|
2586
2586
|
}
|
|
2587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartPaymentEffects, decorators: [{
|
|
2588
2588
|
type: Injectable
|
|
2589
2589
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2590
2590
|
type: Inject,
|
|
@@ -2636,10 +2636,10 @@ class DaffCartResolverEffects {
|
|
|
2636
2636
|
ngrxOnInitEffects() {
|
|
2637
2637
|
return isPlatformBrowser(this.platformId) && this.cartStorage.getCartId() ? new DaffResolveCart() : { type: '' };
|
|
2638
2638
|
}
|
|
2639
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2640
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2639
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartResolverEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: i2.DaffCartStorageService }, { token: i3.DaffCartDriverResolveService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2640
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartResolverEffects }); }
|
|
2641
2641
|
}
|
|
2642
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartResolverEffects, decorators: [{
|
|
2643
2643
|
type: Injectable
|
|
2644
2644
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2645
2645
|
type: Inject,
|
|
@@ -2658,10 +2658,10 @@ class DaffCartShippingAddressEffects {
|
|
|
2658
2658
|
this.get$ = createEffect(() => this.actions$.pipe(ofType(DaffCartShippingAddressActionTypes.CartShippingAddressLoadAction), switchMap((action) => this.driver.get(this.storage.getCartId()).pipe(map((resp) => new DaffCartShippingAddressLoadSuccess(resp)), catchAndArrayifyErrors(error => of(new DaffCartShippingAddressLoadFailure(error.map(this.errorMatcher))))))));
|
|
2659
2659
|
this.update$ = createEffect(() => this.actions$.pipe(ofType(DaffCartShippingAddressActionTypes.CartShippingAddressUpdateAction), switchMap((action) => this.driver.update(this.storage.getCartId(), action.payload).pipe(map((resp) => new DaffCartShippingAddressUpdateSuccess(resp)), catchAndArrayifyErrors(error => of(new DaffCartShippingAddressUpdateFailure(error.map(this.errorMatcher))))))));
|
|
2660
2660
|
}
|
|
2661
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2662
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2661
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartShippingAddressEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartShippingAddressDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2662
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartShippingAddressEffects }); }
|
|
2663
2663
|
}
|
|
2664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartShippingAddressEffects, decorators: [{
|
|
2665
2665
|
type: Injectable
|
|
2666
2666
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2667
2667
|
type: Inject,
|
|
@@ -2681,10 +2681,10 @@ class DaffCartShippingInformationEffects {
|
|
|
2681
2681
|
this.update$ = createEffect(() => this.actions$.pipe(ofType(DaffCartShippingInformationActionTypes.CartShippingInformationUpdateAction), switchMap((action) => this.driver.update(this.storage.getCartId(), action.payload).pipe(map((resp) => new DaffCartShippingInformationUpdateSuccess(resp)), catchAndArrayifyErrors(error => of(new DaffCartShippingInformationUpdateFailure(error.map(this.errorMatcher))))))));
|
|
2682
2682
|
this.delete$ = createEffect(() => this.actions$.pipe(ofType(DaffCartShippingInformationActionTypes.CartShippingInformationDeleteAction), switchMap((action) => this.driver.delete(this.storage.getCartId()).pipe(map((resp) => new DaffCartShippingInformationDeleteSuccess(resp)), catchAndArrayifyErrors(error => of(new DaffCartShippingInformationDeleteFailure(error.map(this.errorMatcher))))))));
|
|
2683
2683
|
}
|
|
2684
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2685
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2684
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartShippingInformationEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartShippingInformationDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2685
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartShippingInformationEffects }); }
|
|
2686
2686
|
}
|
|
2687
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartShippingInformationEffects, decorators: [{
|
|
2688
2688
|
type: Injectable
|
|
2689
2689
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2690
2690
|
type: Inject,
|
|
@@ -2702,10 +2702,10 @@ class DaffCartShippingMethodsEffects {
|
|
|
2702
2702
|
this.storage = storage;
|
|
2703
2703
|
this.list$ = createEffect(() => this.actions$.pipe(ofType(DaffCartShippingMethodsActionTypes.CartShippingMethodsLoadAction), switchMap((action) => this.driver.list(this.storage.getCartId()).pipe(map((resp) => new DaffCartShippingMethodsLoadSuccess(resp)), catchAndArrayifyErrors(error => of(new DaffCartShippingMethodsLoadFailure(error.map(this.errorMatcher))))))));
|
|
2704
2704
|
}
|
|
2705
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2706
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2705
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartShippingMethodsEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartShippingMethodsDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2706
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartShippingMethodsEffects }); }
|
|
2707
2707
|
}
|
|
2708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartShippingMethodsEffects, decorators: [{
|
|
2709
2709
|
type: Injectable
|
|
2710
2710
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2711
2711
|
type: Inject,
|
|
@@ -2742,10 +2742,10 @@ class DaffCartEffects {
|
|
|
2742
2742
|
? new DaffCartStorageFailure(error.map(this.errorMatcher))
|
|
2743
2743
|
: new DaffCartClearFailure(error.map(this.errorMatcher))))))));
|
|
2744
2744
|
}
|
|
2745
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2746
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2745
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartEffects, deps: [{ token: i1.Actions }, { token: DAFF_CART_ERROR_MATCHER }, { token: DaffCartDriver }, { token: i2.DaffCartStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2746
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartEffects }); }
|
|
2747
2747
|
}
|
|
2748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartEffects, decorators: [{
|
|
2749
2749
|
type: Injectable
|
|
2750
2750
|
}], ctorParameters: () => [{ type: i1.Actions }, { type: undefined, decorators: [{
|
|
2751
2751
|
type: Inject,
|
|
@@ -2854,9 +2854,9 @@ const DAFF_CART_REDUCERS = new InjectionToken('DAFF_CART_REDUCERS', {
|
|
|
2854
2854
|
});
|
|
2855
2855
|
|
|
2856
2856
|
class DaffCartStateModule {
|
|
2857
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2858
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
|
2859
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
|
2857
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2858
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.10", ngImport: i0, type: DaffCartStateModule, imports: [i1$1.StoreFeatureModule, i1.EffectsFeatureModule] }); }
|
|
2859
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartStateModule, providers: [
|
|
2860
2860
|
{ provide: DaffCartItemStateDebounceTime, useValue: 4000 },
|
|
2861
2861
|
...daffPaymentProvideExtraReducers(combineReducers({
|
|
2862
2862
|
payment: daffCartPaymentReducer,
|
|
@@ -2879,7 +2879,7 @@ class DaffCartStateModule {
|
|
|
2879
2879
|
DaffCartResolverEffects,
|
|
2880
2880
|
])] }); }
|
|
2881
2881
|
}
|
|
2882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCartStateModule, decorators: [{
|
|
2883
2883
|
type: NgModule,
|
|
2884
2884
|
args: [{
|
|
2885
2885
|
imports: [
|